code/__DEFINES/dcs/datum_signals.dm
COMSIG_COMPONENT_ADDED | Signals for /datums.
Doc format: /// when the signal is called: (signal arguments) .
All signals send the source datum of the signal as the first argument
when a component is added to a datum: (/datum/component) |
---|---|
COMSIG_COMPONENT_REMOVING | before a component is removed from a datum because of UnlinkComponent: (/datum/component) |
COMSIG_PARENT_PREQDELETED | before a datum's Destroy() is called: (force), returning a nonzero value will cancel the qdel operation |
COMSIG_PARENT_QDELETING | just before a datum's Destroy() is called: (force), at this point none of the other components chose to interrupt qdel and Destroy will be called |
COMSIG_ELEMENT_ATTACH | fires on the target datum when an element is attached to it (/datum/element) |
COMSIG_ELEMENT_DETACH | fires on the target datum when an element is attached to it (/datum/element) |
COMSIG_MIND_TRANSER_TO | from base of /datum/mind/proc/transfer_to(mob/living/new_character) |
COMSIG_BODY_TRANSFER_TO | called on the mob instead of the mind |
COMSIG_MIND_INITIALIZE | called when the mind is initialized (called every time the mob logins) |
COMPONENT_BLOOD_SPLASH_HANDLED | If returned from this signal, will prevent any surgery splashing. |
COMSIG_SPECIES_GAIN | from datum/species/on_species_gain(): (datum/species/new_species, datum/species/old_species) |
COMSIG_SPECIES_LOSS | from datum/species/on_species_loss(): (datum/species/lost_species) |
COMSIG_SPECIES_HITBY | from /datum/species/proc/spec_hitby() |
COMSIG_SONG_START | sent to the instrument when a song starts playing |
COMSIG_SONG_END | sent to the instrument when a song stops playing |
COMSIG_COMPONENT_CLEAN_ACT | called on an object to clean it of cleanables. |
COMPONENT_CLEANED | Returned by cleanable components when they are cleaned. |
COMSIG_TWOHANDED_WIELD | from base of datum/component/two_handed/proc/wield(mob/living/carbon/user): (/mob/user) |
COMSIG_TWOHANDED_UNWIELD | from base of datum/component/two_handed/proc/unwield(mob/living/carbon/user): (/mob/user) |
COMSIG_ACTION_TRIGGER | from base of datum/action/proc/Trigger(): (datum/action) |
COMSIG_ACTION_GRANTED | From /datum/action/Grant(): (mob/grant_to) |
COMSIG_MOB_GRANTED_ACTION | From /datum/action/Grant(): (datum/action) |
COMSIG_ACTION_REMOVED | From /datum/action/Remove(): (mob/removed_from) |
COMSIG_MOB_REMOVED_ACTION | From /datum/action/Remove(): (datum/action) |
COMSIG_OBJECTIVE_TARGET_FOUND | from datum/objective/proc/find_target(list/target_blacklist) |
COMSIG_OBJECTIVE_CHECK_VALID_TARGET | from datum/objective/is_invalid_target() |
COMSIG_DEFIB_PADDLES_APPLIED | /datum/component/defib Called when a defibrillator is first applied to someone. (mob/living/user, mob/living/target, harmful) |
COMPONENT_BLOCK_DEFIB_DEAD | Defib is out of power. |
COMPONENT_BLOCK_DEFIB_MISC | Something else: we won't have a custom message for this and should let the defib handle it. |
COMSIG_DEFIB_SHOCK_APPLIED | Called when a defib has been successfully used, and a shock has been applied. (mob/living/user, mob/living/target, harmful, successful) |
COMSIG_DEFIB_READY | Called when a defib's cooldown has run its course and it is once again ready. () |
COMSIG_TRIGGERED_ALARM | datum/alarm_manager |
COMSIG_POWERNET_POWER_CHANGE | from base of /datum/local_powernet/proc/power_change() |
COMSIG_SHADE_TO_CONSTRUCT_TRANSFER | Sent when bodies transfer between shades/shards and constructs from base of /datum/component/construct_held_body/proc/transfer_held_body() |
Define Details
COMPONENT_BLOCK_DEFIB_DEAD
Defib is out of power.
COMPONENT_BLOCK_DEFIB_MISC
Something else: we won't have a custom message for this and should let the defib handle it.
COMPONENT_BLOOD_SPLASH_HANDLED
If returned from this signal, will prevent any surgery splashing.
COMPONENT_CLEANED
Returned by cleanable components when they are cleaned.
COMSIG_ACTION_GRANTED
From /datum/action/Grant(): (mob/grant_to)
COMSIG_ACTION_REMOVED
From /datum/action/Remove(): (mob/removed_from)
COMSIG_ACTION_TRIGGER
from base of datum/action/proc/Trigger(): (datum/action)
COMSIG_BODY_TRANSFER_TO
called on the mob instead of the mind
COMSIG_COMPONENT_ADDED
Signals for /datums.
Doc format: /// when the signal is called: (signal arguments)
.
All signals send the source datum of the signal as the first argument
when a component is added to a datum: (/datum/component)
COMSIG_COMPONENT_CLEAN_ACT
called on an object to clean it of cleanables.
COMSIG_COMPONENT_REMOVING
before a component is removed from a datum because of UnlinkComponent: (/datum/component)
COMSIG_DEFIB_PADDLES_APPLIED
/datum/component/defib Called when a defibrillator is first applied to someone. (mob/living/user, mob/living/target, harmful)
COMSIG_DEFIB_READY
Called when a defib's cooldown has run its course and it is once again ready. ()
COMSIG_DEFIB_SHOCK_APPLIED
Called when a defib has been successfully used, and a shock has been applied. (mob/living/user, mob/living/target, harmful, successful)
COMSIG_ELEMENT_ATTACH
fires on the target datum when an element is attached to it (/datum/element)
COMSIG_ELEMENT_DETACH
fires on the target datum when an element is attached to it (/datum/element)
COMSIG_MIND_INITIALIZE
called when the mind is initialized (called every time the mob logins)
COMSIG_MIND_TRANSER_TO
from base of /datum/mind/proc/transfer_to(mob/living/new_character)
COMSIG_MOB_GRANTED_ACTION
From /datum/action/Grant(): (datum/action)
COMSIG_MOB_REMOVED_ACTION
From /datum/action/Remove(): (datum/action)
COMSIG_OBJECTIVE_CHECK_VALID_TARGET
from datum/objective/is_invalid_target()
COMSIG_OBJECTIVE_TARGET_FOUND
from datum/objective/proc/find_target(list/target_blacklist)
COMSIG_PARENT_PREQDELETED
before a datum's Destroy() is called: (force), returning a nonzero value will cancel the qdel operation
COMSIG_PARENT_QDELETING
just before a datum's Destroy() is called: (force), at this point none of the other components chose to interrupt qdel and Destroy will be called
COMSIG_POWERNET_POWER_CHANGE
from base of /datum/local_powernet/proc/power_change()
COMSIG_SHADE_TO_CONSTRUCT_TRANSFER
Sent when bodies transfer between shades/shards and constructs from base of /datum/component/construct_held_body/proc/transfer_held_body()
COMSIG_SONG_END
sent to the instrument when a song stops playing
COMSIG_SONG_START
sent to the instrument when a song starts playing
COMSIG_SPECIES_GAIN
from datum/species/on_species_gain(): (datum/species/new_species, datum/species/old_species)
COMSIG_SPECIES_HITBY
from /datum/species/proc/spec_hitby()
COMSIG_SPECIES_LOSS
from datum/species/on_species_loss(): (datum/species/lost_species)
COMSIG_TRIGGERED_ALARM
datum/alarm_manager
COMSIG_TWOHANDED_UNWIELD
from base of datum/component/two_handed/proc/unwield(mob/living/carbon/user): (/mob/user)
COMSIG_TWOHANDED_WIELD
from base of datum/component/two_handed/proc/wield(mob/living/carbon/user): (/mob/user)