mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 04:32:42 +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>
25 lines
689 B
Plaintext
25 lines
689 B
Plaintext
// Observer Pattern Implementation: Shuttle Added
|
|
// Registration type: /datum/shuttle (register for the global event only)
|
|
//
|
|
// Raised when: After a shuttle is initialized.
|
|
//
|
|
// Arguments that the called proc should expect:
|
|
// /datum/shuttle/shuttle: the new shuttle
|
|
/*
|
|
GLOBAL_DATUM_INIT(shuttle_added, /decl/observ/shuttle_added, new)
|
|
|
|
/decl/observ/shuttle_added
|
|
name = "Shuttle Added"
|
|
expected_type = /datum/shuttle
|
|
*/
|
|
//Deprecated in favor of comsigs
|
|
|
|
/*****************************
|
|
* Shuttle Added Handling *
|
|
*****************************/
|
|
|
|
/datum/controller/subsystem/shuttles/initialize_shuttle()
|
|
. = ..()
|
|
if(.)
|
|
SEND_SIGNAL(SSshuttles,COMSIG_OBSERVER_SHUTTLE_ADDED,.)
|