mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-26 01:03:06 +00:00
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
39 lines
1.3 KiB
Plaintext
39 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
|
|
|
|
GLOBAL_DATUM_INIT(shuttle_moved_event, /singleton/observ/shuttle_moved, new)
|
|
|
|
/singleton/observ/shuttle_moved
|
|
name = "Shuttle Moved"
|
|
expected_type = /datum/shuttle
|
|
|
|
GLOBAL_DATUM_INIT(shuttle_pre_move_event, /singleton/observ/shuttle_pre_move, new)
|
|
|
|
/singleton/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()
|