immersive-home/docs/reference/StateMachine.md
2024-03-17 00:14:31 +01:00

2.6 KiB

StateMachine

Inherits: Node

Description

Abstract class for a state machine

Properties

Name Type Default
current_state Node
states Dictionary

Methods

Returns Name
void _ready ( )
void change_to ( new_state: String )
Node get_state ( state_name: String )

Signals

changed (state_name: String , old_state: String )

No description provided yet.

Property Descriptions

current_state: Node

No description provided yet.

states: Dictionary

No description provided yet.

Method Descriptions

_ready ( ) -> void

No description provided yet.

change_to (new_state: String ) -> void

Change the current state to the new state

get_state (state_name: String ) -> Node

Get the state with the given name