/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/dcs/signals/signals_atom/signals_atom_lighting.dm

COMSIG_ATOM_SET_LIGHTfrom base of [atom/proc/set_light]: (l_range, l_power, l_color, l_on)
COMPONENT_BLOCK_LIGHT_UPDATEBlocks [/atom/proc/set_light], /atom/proc/set_light_power, /atom/proc/set_light_range, /atom/proc/set_light_color, /atom/proc/set_light_on, and /atom/proc/set_light_flags.
COMSIG_ATOM_SET_LIGHT_POWERCalled right before the atom changes the value of light_power to a different one, from base atom/proc/set_light_power: (new_power)
COMSIG_ATOM_UPDATE_LIGHT_POWERCalled right after the atom changes the value of light_power to a different one, from base of /atom/proc/set_light_power: (old_power)
COMSIG_ATOM_SET_LIGHT_RANGECalled right before the atom changes the value of light_range to a different one, from base atom/proc/set_light_range: (new_range)
COMSIG_ATOM_UPDATE_LIGHT_RANGECalled right after the atom changes the value of light_range to a different one, from base of /atom/proc/set_light_range: (old_range)
COMSIG_ATOM_SET_LIGHT_COLORCalled right before the atom changes the value of light_color to a different one, from base atom/proc/set_light_color: (new_color)
COMSIG_ATOM_UPDATE_LIGHT_COLORCalled right after the atom changes the value of light_color to a different one, from base of /atom/proc/set_light_color: (old_color)
COMSIG_ATOM_SET_LIGHT_ONCalled right before the atom changes the value of light_on to a different one, from base atom/proc/set_light_on: (new_value)
COMSIG_ATOM_UPDATE_LIGHT_ONCalled right after the atom changes the value of light_on to a different one, from base of /atom/proc/set_light_on: (old_value)
COMSIG_ATOM_SET_LIGHT_FLAGSCalled right before the atom changes the value of light_flags to a different one, from base atom/proc/set_light_flags: (new_flags)
COMSIG_ATOM_UPDATE_LIGHT_FLAGSCalled right after the atom changes the value of light_flags to a different one, from base of /atom/proc/set_light_flags: (old_flags)

Define Details

COMPONENT_BLOCK_LIGHT_UPDATE

Blocks [/atom/proc/set_light], /atom/proc/set_light_power, /atom/proc/set_light_range, /atom/proc/set_light_color, /atom/proc/set_light_on, and /atom/proc/set_light_flags.

COMSIG_ATOM_SET_LIGHT

from base of [atom/proc/set_light]: (l_range, l_power, l_color, l_on)

COMSIG_ATOM_SET_LIGHT_COLOR

Called right before the atom changes the value of light_color to a different one, from base atom/proc/set_light_color: (new_color)

COMSIG_ATOM_SET_LIGHT_FLAGS

Called right before the atom changes the value of light_flags to a different one, from base atom/proc/set_light_flags: (new_flags)

COMSIG_ATOM_SET_LIGHT_ON

Called right before the atom changes the value of light_on to a different one, from base atom/proc/set_light_on: (new_value)

COMSIG_ATOM_SET_LIGHT_POWER

Called right before the atom changes the value of light_power to a different one, from base atom/proc/set_light_power: (new_power)

COMSIG_ATOM_SET_LIGHT_RANGE

Called right before the atom changes the value of light_range to a different one, from base atom/proc/set_light_range: (new_range)

COMSIG_ATOM_UPDATE_LIGHT_COLOR

Called right after the atom changes the value of light_color to a different one, from base of /atom/proc/set_light_color: (old_color)

COMSIG_ATOM_UPDATE_LIGHT_FLAGS

Called right after the atom changes the value of light_flags to a different one, from base of /atom/proc/set_light_flags: (old_flags)

COMSIG_ATOM_UPDATE_LIGHT_ON

Called right after the atom changes the value of light_on to a different one, from base of /atom/proc/set_light_on: (old_value)

COMSIG_ATOM_UPDATE_LIGHT_POWER

Called right after the atom changes the value of light_power to a different one, from base of /atom/proc/set_light_power: (old_power)

COMSIG_ATOM_UPDATE_LIGHT_RANGE

Called right after the atom changes the value of light_range to a different one, from base of /atom/proc/set_light_range: (old_range)