Files
Aurora.3/code/datums/observation/exited.dm
2021-06-02 22:19:18 -03:00

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)