|
|
|
@@ -15,22 +15,31 @@
|
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
// /datum signals
|
|
|
|
|
#define COMSIG_COMPONENT_ADDED "component_added" //sent to the new datum parent when a component is added to them: (/datum/component)
|
|
|
|
|
#define COMSIG_COMPONENT_REMOVING "component_removing" //sent to the datum parent before a component is removed from them because of RemoveComponent: (/datum/component)
|
|
|
|
|
#define COMSIG_COMPONENT_UNREGISTER_PARENT "component_unregister_parent" //sent to the component itself when unregistered from a parent
|
|
|
|
|
#define COMSIG_COMPONENT_REGISTER_PARENT "component_register_parent" //sent to the component itself when registered to a parent
|
|
|
|
|
#define COMSIG_PARENT_PREQDELETED "parent_preqdeleted" //before a datum's Destroy() is called: (force), returning a nonzero value will cancel the qdel operation
|
|
|
|
|
#define COMSIG_PARENT_QDELETING "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
|
|
|
|
|
|
|
|
|
|
/// Trait signals
|
|
|
|
|
#define COMPONENT_ADD_TRAIT (1<<0)
|
|
|
|
|
#define COMPONENT_REMOVE_TRAIT (1<<1)
|
|
|
|
|
/// when a component is added to a datum: (/datum/component)
|
|
|
|
|
#define COMSIG_COMPONENT_ADDED "component_added"
|
|
|
|
|
/// before a component is removed from a datum because of RemoveComponent: (/datum/component)
|
|
|
|
|
#define COMSIG_COMPONENT_REMOVING "component_removing"
|
|
|
|
|
/// before a datum's Destroy() is called: (force), returning a nonzero value will cancel the qdel operation
|
|
|
|
|
#define COMSIG_PARENT_PREQDELETED "parent_preqdeleted"
|
|
|
|
|
/// 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
|
|
|
|
|
#define COMSIG_PARENT_QDELETING "parent_qdeleting"
|
|
|
|
|
/// generic topic handler (usr, href_list)
|
|
|
|
|
#define COMSIG_TOPIC "handle_topic"
|
|
|
|
|
|
|
|
|
|
/// fires on the target datum when an element is attached to it (/datum/element)
|
|
|
|
|
#define COMSIG_ELEMENT_ATTACH "element_attach"
|
|
|
|
|
/// fires on the target datum when an element is attached to it (/datum/element)
|
|
|
|
|
#define COMSIG_ELEMENT_DETACH "element_detach"
|
|
|
|
|
|
|
|
|
|
/// sent to the component itself when unregistered from a parent
|
|
|
|
|
#define COMSIG_COMPONENT_UNREGISTER_PARENT "component_unregister_parent"
|
|
|
|
|
/// sent to the component itself when registered to a parent
|
|
|
|
|
#define COMSIG_COMPONENT_REGISTER_PARENT "component_register_parent"
|
|
|
|
|
|
|
|
|
|
/// Trait signals
|
|
|
|
|
#define COMPONENT_ADD_TRAIT (1<<0)
|
|
|
|
|
#define COMPONENT_REMOVE_TRAIT (1<<1)
|
|
|
|
|
|
|
|
|
|
// /atom signals
|
|
|
|
|
//from base of atom/proc/Initialize(): sent any time a new atom is created
|
|
|
|
|
#define COMSIG_ATOM_CREATED "atom_created"
|
|
|
|
@@ -56,30 +65,52 @@
|
|
|
|
|
#define COMSIG_ATOM_EXIT "atom_exit" //from base of atom/Exit(): (/atom/movable/exiting, /atom/newloc)
|
|
|
|
|
#define COMPONENT_ATOM_BLOCK_EXIT 1
|
|
|
|
|
#define COMSIG_ATOM_EXITED "atom_exited" //from base of atom/Exited(): (atom/movable/exiting, atom/newloc)
|
|
|
|
|
#define COMSIG_ATOM_EX_ACT "atom_ex_act" //from base of atom/ex_act(): (severity, target)
|
|
|
|
|
#define COMSIG_ATOM_EMP_ACT "atom_emp_act" //from base of atom/emp_act(): (severity)
|
|
|
|
|
#define COMSIG_ATOM_FIRE_ACT "atom_fire_act" //from base of atom/fire_act(): (exposed_temperature, exposed_volume)
|
|
|
|
|
#define COMSIG_ATOM_BULLET_ACT "atom_bullet_act" //from base of atom/bullet_act(): (/obj/item/projectile, def_zone)
|
|
|
|
|
#define COMSIG_ATOM_BLOB_ACT "atom_blob_act" //from base of atom/blob_act(): (/obj/structure/blob)
|
|
|
|
|
#define COMSIG_ATOM_ACID_ACT "atom_acid_act" //from base of atom/acid_act(): (acidpwr, acid_volume)
|
|
|
|
|
#define COMSIG_ATOM_EMAG_ACT "atom_emag_act" //from base of atom/emag_act(): ()
|
|
|
|
|
#define COMSIG_ATOM_RAD_ACT "atom_rad_act" //from base of atom/rad_act(intensity)
|
|
|
|
|
#define COMSIG_ATOM_NARSIE_ACT "atom_narsie_act" //from base of atom/narsie_act(): ()
|
|
|
|
|
#define COMSIG_ATOM_RATVAR_ACT "atom_ratvar_act" //from base of atom/ratvar_act(): ()
|
|
|
|
|
#define COMSIG_ATOM_RCD_ACT "atom_rcd_act" //from base of atom/rcd_act(): (/mob, /obj/item/construction/rcd, passed_mode)
|
|
|
|
|
#define COMSIG_ATOM_SING_PULL "atom_sing_pull" //from base of atom/singularity_pull(): (S, current_size)
|
|
|
|
|
#define COMSIG_ATOM_SET_LIGHT "atom_set_light" //from base of atom/set_light(): (l_range, l_power, l_color)
|
|
|
|
|
#define COMSIG_ATOM_DIR_CHANGE "atom_dir_change" //from base of atom/setDir(): (old_dir, new_dir)
|
|
|
|
|
#define COMSIG_ATOM_CONTENTS_DEL "atom_contents_del" //from base of atom/handle_atom_del(): (atom/deleted)
|
|
|
|
|
#define COMSIG_ATOM_HAS_GRAVITY "atom_has_gravity" //from base of atom/has_gravity(): (turf/location, list/forced_gravities)
|
|
|
|
|
#define COMSIG_ATOM_RAD_PROBE "atom_rad_probe" //from proc/get_rad_contents(): ()
|
|
|
|
|
#define COMPONENT_BLOCK_RADIATION 1
|
|
|
|
|
#define COMSIG_ATOM_RAD_CONTAMINATING "atom_rad_contam" //from base of datum/radiation_wave/radiate(): (strength)
|
|
|
|
|
#define COMPONENT_BLOCK_CONTAMINATION 1
|
|
|
|
|
#define COMSIG_ATOM_RAD_WAVE_PASSING "atom_rad_wave_pass" //from base of datum/radiation_wave/check_obstructions(): (datum/radiation_wave, width)
|
|
|
|
|
#define COMPONENT_RAD_WAVE_HANDLED 1
|
|
|
|
|
#define COMSIG_ATOM_CANREACH "atom_can_reach" //from internal loop in atom/movable/proc/CanReach(): (list/next)
|
|
|
|
|
#define COMPONENT_BLOCK_REACH 1
|
|
|
|
|
///from base of atom/ex_act(): (severity, target)
|
|
|
|
|
#define COMSIG_ATOM_EX_ACT "atom_ex_act"
|
|
|
|
|
///from base of atom/emp_act(): (severity)
|
|
|
|
|
#define COMSIG_ATOM_EMP_ACT "atom_emp_act"
|
|
|
|
|
///from base of atom/fire_act(): (exposed_temperature, exposed_volume)
|
|
|
|
|
#define COMSIG_ATOM_FIRE_ACT "atom_fire_act"
|
|
|
|
|
///from base of atom/bullet_act(): (/obj/projectile, def_zone)
|
|
|
|
|
#define COMSIG_ATOM_BULLET_ACT "atom_bullet_act"
|
|
|
|
|
///from base of atom/blob_act(): (/obj/structure/blob)
|
|
|
|
|
#define COMSIG_ATOM_BLOB_ACT "atom_blob_act"
|
|
|
|
|
///from base of atom/acid_act(): (acidpwr, acid_volume)
|
|
|
|
|
#define COMSIG_ATOM_ACID_ACT "atom_acid_act"
|
|
|
|
|
///from base of atom/emag_act(): (/mob/user)
|
|
|
|
|
#define COMSIG_ATOM_EMAG_ACT "atom_emag_act"
|
|
|
|
|
///from base of atom/rad_act(intensity)
|
|
|
|
|
#define COMSIG_ATOM_RAD_ACT "atom_rad_act"
|
|
|
|
|
///from base of atom/narsie_act(): ()
|
|
|
|
|
#define COMSIG_ATOM_NARSIE_ACT "atom_narsie_act"
|
|
|
|
|
///from base of atom/rcd_act(): (/mob, /obj/item/construction/rcd, passed_mode)
|
|
|
|
|
#define COMSIG_ATOM_RCD_ACT "atom_rcd_act"
|
|
|
|
|
///from base of atom/singularity_pull(): (S, current_size)
|
|
|
|
|
#define COMSIG_ATOM_SING_PULL "atom_sing_pull"
|
|
|
|
|
///from obj/machinery/bsa/full/proc/fire(): ()
|
|
|
|
|
#define COMSIG_ATOM_BSA_BEAM "atom_bsa_beam_pass"
|
|
|
|
|
#define COMSIG_ATOM_BLOCKS_BSA_BEAM (1<<0)
|
|
|
|
|
///from base of atom/set_light(): (l_range, l_power, l_color)
|
|
|
|
|
#define COMSIG_ATOM_SET_LIGHT "atom_set_light"
|
|
|
|
|
///from base of atom/setDir(): (old_dir, new_dir). Called before the direction changes.
|
|
|
|
|
#define COMSIG_ATOM_DIR_CHANGE "atom_dir_change"
|
|
|
|
|
///from base of atom/handle_atom_del(): (atom/deleted)
|
|
|
|
|
#define COMSIG_ATOM_CONTENTS_DEL "atom_contents_del"
|
|
|
|
|
///from base of atom/has_gravity(): (turf/location, list/forced_gravities)
|
|
|
|
|
#define COMSIG_ATOM_HAS_GRAVITY "atom_has_gravity"
|
|
|
|
|
///from proc/get_rad_contents(): ()
|
|
|
|
|
#define COMSIG_ATOM_RAD_PROBE "atom_rad_probe"
|
|
|
|
|
#define COMPONENT_BLOCK_RADIATION (1<<0)
|
|
|
|
|
///from base of datum/radiation_wave/radiate(): (strength)
|
|
|
|
|
#define COMSIG_ATOM_RAD_CONTAMINATING "atom_rad_contam"
|
|
|
|
|
#define COMPONENT_BLOCK_CONTAMINATION (1<<0)
|
|
|
|
|
///from base of datum/radiation_wave/check_obstructions(): (datum/radiation_wave, width)
|
|
|
|
|
#define COMSIG_ATOM_RAD_WAVE_PASSING "atom_rad_wave_pass"
|
|
|
|
|
#define COMPONENT_RAD_WAVE_HANDLED (1<<0)
|
|
|
|
|
///from internal loop in atom/movable/proc/CanReach(): (list/next)
|
|
|
|
|
#define COMSIG_ATOM_CANREACH "atom_can_reach"
|
|
|
|
|
#define COMPONENT_ALLOW_REACH (1<<0)
|
|
|
|
|
|
|
|
|
|
#define COMSIG_ATOM_SCREWDRIVER_ACT "atom_screwdriver_act" //from base of atom/screwdriver_act(): (mob/living/user, obj/item/I)
|
|
|
|
|
#define COMSIG_ATOM_INTERCEPT_TELEPORT "intercept_teleport" //called when teleporting into a protected turf: (channel, turf/origin, turf/destination)
|
|
|
|
|
#define COMPONENT_BLOCK_TELEPORT 1
|
|
|
|
|