mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
24 lines
639 B
Plaintext
24 lines
639 B
Plaintext
// Observer Pattern Implementation: Exited
|
|
// Registration type: /atom
|
|
//
|
|
// Raised when: An /atom/movable instance has exited an atom.
|
|
//
|
|
// Arguments that the called proc should expect:
|
|
// /atom/entered: The atom that was exited from
|
|
// /atom/movable/exitee: The instance that exited the atom
|
|
// /atom/new_loc: The atom the exitee is now residing in
|
|
//
|
|
|
|
var/datum/observ/exited/exited_event = new()
|
|
|
|
/datum/observ/exited
|
|
name = "Exited"
|
|
expected_type = /atom
|
|
|
|
/******************
|
|
* Exited Handling *
|
|
******************/
|
|
|
|
/atom/Exited(atom/movable/exitee, atom/new_loc)
|
|
. = ..()
|
|
exited_event.raise_event(src, exitee, new_loc) |