mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-30 02:44:26 +00:00
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,.)
|