byond - Modules - TypesDefine Details

code/__DEFINES/dcs/signals/signals_datum.dm

COMSIG_COMPONENT_ADDEDwhen a component is added to a datum: (/datum/component)
COMSIG_COMPONENT_REMOVINGbefore a component is removed from a datum because of RemoveComponent: (/datum/component)
COMSIG_PARENT_PREQDELETEDbefore a datum's Destroy() is called: (force), returning a COMPONENT_ABORT_QDEL value will cancel the qdel operation
COMSIG_PARENT_QDELETINGjust 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_TOPICgeneric topic handler (usr, href_list)
COMSIG_UI_ACTfrom datum ui_act (usr, action)
COMSIG_PARENT_ATTACKBYfrom base of atom/attackby(): (/obj/item, /mob/living, params)
COMPONENT_NO_AFTERATTACKReturn this in response if you don't want afterattack to be called
COMSIG_PARENT_EXAMINEfrom base of atom/examine(): (/mob, list/examine_text)
COMSIG_VV_TOPIChandler for vv_do_topic (usr, href_list)
COMSIG_ELEMENT_ATTACHfires on the target datum when an element is attached to it (/datum/element)
COMSIG_ELEMENT_DETACHfires on the target datum when an element is attached to it (/datum/element)
COMSIG_ACTION_GIVENFrom /datum/action/proc/give_to(): (mob/owner)
COMSIG_ACTION_REMOVEDFrom base of /datum/action/proc/remove_from(): (mob/owner)
COMSIG_ACTION_HIDDENFrom base of /datum/action/proc/hide_from(): (mob/owner)
COMSIG_ACTION_UNHIDDENFrom base of /datum/action/proc/unhide_from(): (mob/owner)
COMSIG_BONUS_DAMAGEfrom /datum/component/bonus_damage_stack
COMSIG_SET_SQUADfrom /datum/squad/proc/put_marine_in_squad
COMSIG_DROP_RETRIEVAL_CHECKFrom /datum/element/drop_retrieval usage: /obj/item/attachable/magnetic_harness/can_be_attached_to_gun(), /obj/item/storage/pouch/sling/can_be_inserted() (/obj/item/I)

Define Details

COMPONENT_NO_AFTERATTACK

Return this in response if you don't want afterattack to be called

COMSIG_ACTION_GIVEN

From /datum/action/proc/give_to(): (mob/owner)

COMSIG_ACTION_HIDDEN

From base of /datum/action/proc/hide_from(): (mob/owner)

COMSIG_ACTION_REMOVED

From base of /datum/action/proc/remove_from(): (mob/owner)

COMSIG_ACTION_UNHIDDEN

From base of /datum/action/proc/unhide_from(): (mob/owner)

COMSIG_BONUS_DAMAGE

from /datum/component/bonus_damage_stack

COMSIG_COMPONENT_ADDED

when a component is added to a datum: (/datum/component)

COMSIG_COMPONENT_REMOVING

before a component is removed from a datum because of RemoveComponent: (/datum/component)

COMSIG_DROP_RETRIEVAL_CHECK

From /datum/element/drop_retrieval usage: /obj/item/attachable/magnetic_harness/can_be_attached_to_gun(), /obj/item/storage/pouch/sling/can_be_inserted() (/obj/item/I)

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_PARENT_ATTACKBY

from base of atom/attackby(): (/obj/item, /mob/living, params)

COMSIG_PARENT_EXAMINE

from base of atom/examine(): (/mob, list/examine_text)

COMSIG_PARENT_PREQDELETED

before a datum's Destroy() is called: (force), returning a COMPONENT_ABORT_QDEL 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_SET_SQUAD

from /datum/squad/proc/put_marine_in_squad

COMSIG_TOPIC

generic topic handler (usr, href_list)

COMSIG_UI_ACT

from datum ui_act (usr, action)

COMSIG_VV_TOPIC

handler for vv_do_topic (usr, href_list)