mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Co-authored-by: Selis <selis@xynolabs.com> Co-authored-by: Selis <sirlionfur@hotmail.de> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: SatinIsle <thesatinisle@gmail.com> Co-authored-by: Heroman <alesha3000@list.ru> Co-authored-by: Casey <a.roaming.shadow@gmail.com> Co-authored-by: Raeschen <rycoop29@gmail.com>
24 lines
623 B
Plaintext
24 lines
623 B
Plaintext
// Observer Pattern Implementation: Area Power Change
|
|
// Registration type: /area
|
|
//
|
|
// Raised when: An /area has a power change (the APC powers up/down or some channels are enabled/disabled)
|
|
//
|
|
// Arguments that the called proc should expect:
|
|
// /area: The area experiencing the power change
|
|
/*
|
|
GLOBAL_DATUM_INIT(apc_event, /decl/observ/area_power_change, new)
|
|
|
|
/decl/observ/area_power_change
|
|
name = "Area Power Change"
|
|
expected_type = /area
|
|
|
|
/********************
|
|
* Movement Handling *
|
|
********************/
|
|
*/
|
|
//Deprecated in favor of comsigs
|
|
|
|
/area/power_change()
|
|
. = ..()
|
|
SEND_SIGNAL(src,COMSIG_OBSERVER_APC)
|