mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-25 00:32:46 +00:00
* part 1 * compiles? * IT WORKS * vis contents * fixes * umbrelloid * umbrella 2 * dsasdd * stuff * lmao --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
17 lines
648 B
Plaintext
17 lines
648 B
Plaintext
// Used to connect `/singleton/state`s together so the FSM knows what state to switch to, and on what conditions.
|
|
// On a directed graph, these would be the arrows connecting the nodes representing states.
|
|
/singleton/state_transition
|
|
var/list/from = null
|
|
var/singleton/state/target = null
|
|
|
|
// Called by one or more state decls acting as nodes in a directed graph.
|
|
/singleton/state_transition/Initialize()
|
|
. = ..()
|
|
LAZYINITLIST(from)
|
|
if(ispath(target))
|
|
target = GET_SINGLETON(target)
|
|
|
|
// Tells the FSM if it should or should not be allowed to transfer to the target state.
|
|
/singleton/state_transition/proc/is_open(datum/holder)
|
|
return FALSE
|