/tg/ Station 13 - Modules - TypesVar Details - Proc Details

machinery

Vars

processing_flagsViable flags to go here are START_PROCESSING_ON_INIT, or START_PROCESSING_MANUALLY. See code__DEFINES\machines.dm for more information on these flags.
subsystem_typeWhat subsystem this machine will use, which is generally SSmachines or SSfastprocess. By default all machinery use SSmachines. This fires a machine's process() roughly every 2 seconds.

Procs

begin_processingHelper proc for telling a machine to start processing with the subsystem type that is located in its subsystem_type var.
end_processingHelper proc for telling a machine to stop processing with the subsystem type that is located in its subsystem_type var.
power_changeCalled whenever the power settings of the containing area change

Var Details

processing_flags

Viable flags to go here are START_PROCESSING_ON_INIT, or START_PROCESSING_MANUALLY. See code__DEFINES\machines.dm for more information on these flags.

subsystem_type

What subsystem this machine will use, which is generally SSmachines or SSfastprocess. By default all machinery use SSmachines. This fires a machine's process() roughly every 2 seconds.

Proc Details

begin_processing

Helper proc for telling a machine to start processing with the subsystem type that is located in its subsystem_type var.

end_processing

Helper proc for telling a machine to stop processing with the subsystem type that is located in its subsystem_type var.

power_change

Called whenever the power settings of the containing area change

by default, check equipment channel & set flag, can override if needed

Returns TRUE if the NOPOWER flag was toggled