/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/dcs/helpers.dm

SEND_SIGNALUsed to trigger signals and call procs registered for that signal The datum hosting the signal is automatically added as the first argument Returns a bitfield gathered from all registered procs Arguments given here are packaged in a list and given to _SendSignal
SIGNAL_HANDLERSignifies that this proc is used to handle signals. Every proc you pass to RegisterSignal must have this.
AddElementA wrapper for _AddElement that allows us to pretend we're using normal named arguments
RemoveElementA wrapper for _RemoveElement that allows us to pretend we're using normal named arguments
AddComponentA wrapper for _AddComponent that allows us to pretend we're using normal named arguments
AddComponentFromA wrapper for _AddComonent that passes in a source. Necessary if dupe_mode is set to COMPONENT_DUPE_SOURCES.
LoadComponentA wrapper for _LoadComponent that allows us to pretend we're using normal named arguments

Define Details

AddComponent

A wrapper for _AddComponent that allows us to pretend we're using normal named arguments

AddComponentFrom

A wrapper for _AddComonent that passes in a source. Necessary if dupe_mode is set to COMPONENT_DUPE_SOURCES.

AddElement

A wrapper for _AddElement that allows us to pretend we're using normal named arguments

LoadComponent

A wrapper for _LoadComponent that allows us to pretend we're using normal named arguments

RemoveElement

A wrapper for _RemoveElement that allows us to pretend we're using normal named arguments

SEND_SIGNAL

Used to trigger signals and call procs registered for that signal The datum hosting the signal is automatically added as the first argument Returns a bitfield gathered from all registered procs Arguments given here are packaged in a list and given to _SendSignal

SIGNAL_HANDLER

Signifies that this proc is used to handle signals. Every proc you pass to RegisterSignal must have this.