mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
// Observer Pattern Implementation: Shuttle Moved
|
|
// Registration type: /datum/shuttle/autodock
|
|
//
|
|
// Raised when: A shuttle has moved to a new landmark.
|
|
//
|
|
// Arguments that the called proc should expect:
|
|
// /datum/shuttle/shuttle: the shuttle moving
|
|
// /obj/effect/shuttle_landmark/old_location: the old location's shuttle landmark
|
|
// /obj/effect/shuttle_landmark/new_location: the new location's shuttle landmark
|
|
|
|
// Observer Pattern Implementation: Shuttle Pre Move
|
|
// Registration type: /datum/shuttle/autodock
|
|
//
|
|
// Raised when: A shuttle is about to move to a new landmark.
|
|
//
|
|
// Arguments that the called proc should expect:
|
|
// /datum/shuttle/shuttle: the shuttle moving
|
|
// /obj/effect/shuttle_landmark/old_location: the old location's shuttle landmark
|
|
// /obj/effect/shuttle_landmark/new_location: the new location's shuttle landmark
|
|
|
|
var/datum/observ/shuttle_moved/shuttle_moved_event = new()
|
|
|
|
/datum/observ/shuttle_moved
|
|
name = "Shuttle Moved"
|
|
expected_type = /datum/shuttle
|
|
|
|
var/datum/observ/shuttle_pre_move/shuttle_pre_move_event = new()
|
|
|
|
/datum/observ/shuttle_pre_move
|
|
name = "Shuttle Pre Move"
|
|
expected_type = /datum/shuttle
|
|
|
|
/*****************
|
|
* Shuttle Moved/Pre Move Handling *
|
|
*****************/
|
|
|
|
// Located in modules/shuttle/shuttle.dm
|
|
// Proc: /datum/shuttle/proc/attempt_move() |