mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
16 lines
1.0 KiB
Plaintext
16 lines
1.0 KiB
Plaintext
/// Used to trigger signals and call procs registered for that signal
|
|
/// The datum hosting the signal is automaticaly 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
|
|
#define SEND_SIGNAL(target, sigtype, arguments...) ( !target.comp_lookup || !target.comp_lookup[sigtype] ? NONE : target._SendSignal(sigtype, list(target, ##arguments)) )
|
|
|
|
#define SEND_GLOBAL_SIGNAL(sigtype, arguments...) ( SEND_SIGNAL(SSdcs, sigtype, ##arguments) )
|
|
|
|
/// A wrapper for _AddElement that allows us to pretend we're using normal named arguments
|
|
#define AddElement(arguments...) _AddElement(list(##arguments))
|
|
/// A wrapper for _RemoveElement that allows us to pretend we're using normal named arguments
|
|
#define RemoveElement(arguments...) _RemoveElement(list(##arguments))
|
|
|
|
/// A wrapper for _AddComponent that allows us to pretend we're using normal named arguments
|
|
#define AddComponent(arguments...) _AddComponent(list(##arguments))
|