mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
22 lines
467 B
Plaintext
22 lines
467 B
Plaintext
// Observer Pattern Implementation: Logged in
|
|
// Registration type: /mob
|
|
//
|
|
// Raised when: A mob logs in (not client)
|
|
//
|
|
// Arguments that the called proc should expect:
|
|
// /mob/joiner: The mob that has logged in
|
|
|
|
GLOBAL_DATUM_INIT(logged_in_event, /decl/observ/logged_in, new)
|
|
|
|
/decl/observ/logged_in
|
|
name = "Logged In"
|
|
expected_type = /mob
|
|
|
|
/*****************
|
|
* Login Handling *
|
|
*****************/
|
|
|
|
/mob/Login()
|
|
..()
|
|
GLOB.logged_in_event.raise_event(src)
|