Vast improvements and a working finite state machine, working on new guild member registration.
This commit is contained in:
17
fsm/nodes/state_node.gd
Normal file
17
fsm/nodes/state_node.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
class_name StateNode extends Node
|
||||
|
||||
var state_machine : StateMachine = null
|
||||
signal completed(state : StateNode)
|
||||
|
||||
|
||||
func enter() -> void:
|
||||
pass
|
||||
|
||||
func exit() -> void:
|
||||
pass
|
||||
|
||||
func execute(subject, ...args : Array) -> void:
|
||||
pass
|
||||
|
||||
func complete_state() -> void:
|
||||
completed.emit(self)
|
||||
Reference in New Issue
Block a user