Space Station 13 - Modules - TypesVar Details - Proc Details

tracks

Vars

coming_stateString. Icon state used for incoming tracks during update_icon().
dirsBitflag. All directions, both incoming and outgoing, that this track decal has prints traveling in. See setdirs for a definition of each flag.
going_stateString. Icon state used for outgoing tracks during update_icon().
setdirsList ("number" -> instances of /datum/fluidtrack). Map of directional bit flags to attached fluidtrack isntances.

Procs

AddTracksAdd tracks to an existing trail.

Var Details

coming_state

String. Icon state used for incoming tracks during update_icon().

dirs

Bitflag. All directions, both incoming and outgoing, that this track decal has prints traveling in. See setdirs for a definition of each flag.

going_state

String. Icon state used for outgoing tracks during update_icon().

setdirs

List ("number" -> instances of /datum/fluidtrack). Map of directional bit flags to attached fluidtrack isntances.

Indexes are stringified bitflags of the four main cardinal directions, duplicated once. The first set is incoming footsteps, and the second outgoing.

Quick reference of each bitflag:

INCOMING_NORTH = 1
INCOMING_SOUTH = 2
INCOMING_EAST = 4
INCOMING_WEST = 8
OUTGOING_NORTH = 16
OUTGOING_SOUTH = 32
OUTGOING_EAST = 64
OUTGOING_WEST = 128

Proc Details

AddTracks

Add tracks to an existing trail.

@param DNA bloodDNA to add to collection. @param comingdir Direction tracks come from, or 0. @param goingdir Direction tracks are going to (or 0). @param bloodcolor Color of the blood when wet.