Space Station 13 - Modules - TypesVar Details - Proc Details

holopad

Vars

can_hear_flagsbitfield. used to turn on and off hearing sensitivity depending on if we can act on Hear() at all - meant for lowering the number of unessesary hearable atoms
holo_callsArray of /datum/holocalls that are calling US. this is only filled for holopads answering calls from another holopad
outgoing_callCurrently outgoing holocall, cannot call any other holopads unless this is null. creating a new holocall from us to another holopad sets this var to that holocall datum

Procs

set_can_hear_flagssetter for can_hear_flags. handles adding or removing the given flag on can_hear_flags and then adding hearing sensitivity or removing it depending on the final state this is necessary because holopads are a significant fraction of the hearable atoms on station which increases the cost of procs that iterate through hearables so we need holopads to not be hearable until it is needed
set_holocallsetter for adding/removing holocalls to this holopad. used to update the holo_calls list and can_hear_flags adds the given holocall if add_holocall is TRUE, removes if FALSE

Var Details

can_hear_flags

bitfield. used to turn on and off hearing sensitivity depending on if we can act on Hear() at all - meant for lowering the number of unessesary hearable atoms

holo_calls

Array of /datum/holocalls that are calling US. this is only filled for holopads answering calls from another holopad

outgoing_call

Currently outgoing holocall, cannot call any other holopads unless this is null. creating a new holocall from us to another holopad sets this var to that holocall datum

Proc Details

set_can_hear_flags

setter for can_hear_flags. handles adding or removing the given flag on can_hear_flags and then adding hearing sensitivity or removing it depending on the final state this is necessary because holopads are a significant fraction of the hearable atoms on station which increases the cost of procs that iterate through hearables so we need holopads to not be hearable until it is needed

set_holocall

setter for adding/removing holocalls to this holopad. used to update the holo_calls list and can_hear_flags adds the given holocall if add_holocall is TRUE, removes if FALSE