mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Datums know what signals are being listened for and components can now be registered to listen for signals on more than one object.
12 lines
319 B
Plaintext
12 lines
319 B
Plaintext
/datum/component/empprotection
|
|
var/flags = NONE
|
|
|
|
/datum/component/empprotection/Initialize(_flags)
|
|
if(!istype(parent, /atom))
|
|
return COMPONENT_INCOMPATIBLE
|
|
flags = _flags
|
|
RegisterSignal(parent, list(COMSIG_ATOM_EMP_ACT), .proc/getEmpFlags)
|
|
|
|
/datum/component/empprotection/proc/getEmpFlags(severity)
|
|
return flags
|