ESCObject
Extends: Reference
Description
Constants Descriptions
STATE_DEFAULT
const STATE_DEFAULT: String = "default"
Default object state
Property Descriptions
global_id
var global_id: String
The global id of the object
active
var active: bool = true
Whether the object is active (visible to the player)
interactive
var interactive: bool = true
Whether the object is interactive (clickable by the player)
state
var state: String
The state of the object. If the object has a respective animation, it will be played
events
var events: Dictionary
The events registered with the object
node
var node: Node
The node in the scene. Can be an ESCItem or an ESCCamera
Method Descriptions
_init
func _init(p_global_id: String, p_node: Node)
set_state
func set_state(p_state: String, immediate: bool = false)
Set the state and start a possible animation
Parameters
p_state: State to set
immediate: If true, skip directly to the end
get_save_data
func get_save_data() -> Dictionary
Return the data of the object to be inserted in a savegame file.
Returns A dictionary containing the data to be saved for this object.