/tg/ Station 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
InitAtomInit this specific atom
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

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