Yogstation 13 - Modules - TypesVar Details - Proc Details

Atoms

Vars

created_atomsinitAtom() adds the atom its creating to this list iff InitializeAtoms() has been given a list to populate as an argument
initialized_stateA stack of list(source, desired initialized state) We read the source of init changes from the last entry, and assert that all changes will come with a reset
queued_deletionsAtoms that will be deleted once the subsystem is initialized

Procs

CreateAtomsActually creates the list of atoms. Exists soley so a runtime in the creation logic doesn't cause initalized to totally break
InitAtomAn atom we are buckled or is contained within us has tried to move
get_initialized_sourceReturns the source currently modifying SSatom's init behavior
initializing_somethingReturns TRUE if anything is currently being initialized
prepare_deletionPrepares an atom to be deleted once the atoms SS is initialized.
set_tracked_initalizedUse this to set initialized to prevent error states where the old initialized is overriden, and we end up losing all context Accepts a state and a source, the most recent state is used, sources exist to prevent overriding old values accidentially

Var Details

created_atoms

initAtom() adds the atom its creating to this list iff InitializeAtoms() has been given a list to populate as an argument

initialized_state

A stack of list(source, desired initialized state) We read the source of init changes from the last entry, and assert that all changes will come with a reset

queued_deletions

Atoms that will be deleted once the subsystem is initialized

Proc Details

CreateAtoms

Actually creates the list of atoms. Exists soley so a runtime in the creation logic doesn't cause initalized to totally break

InitAtom

An atom we are buckled or is contained within us has tried to move

Default behaviour is to send a warning that the user can't move while buckled as long as the buckle_message_cooldown has expired (50 ticks) Init this specific atom

get_initialized_source

Returns the source currently modifying SSatom's init behavior

initializing_something

Returns TRUE if anything is currently being initialized

prepare_deletion

Prepares an atom to be deleted once the atoms SS is initialized.

set_tracked_initalized

Use this to set initialized to prevent error states where the old initialized is overriden, and we end up losing all context Accepts a state and a source, the most recent state is used, sources exist to prevent overriding old values accidentially