PointClickEngine::Characters::ScriptableCharacter
Inherits PointClickEngine::Characters::Character < PointClickEngine::Characters::Talkable < PointClickEngine::Core::GameObject < PointClickEngine::Core::Drawable < Reference < Object
Scriptable character that replaces complex AI behaviors with Lua scripts
Constructors
new(name : String, position : RL::Vector2, size : RL::Vector2)
Sourcenew
SourceInstance methods
custom_properties
Sourcecustom_properties=(custom_properties : Hash(String, String))
Sourceget_property(key : String) : String
Sourcelast_update
Sourcelast_update=(last_update : Float32)
Sourceload_script(file_path : String)
Sourceon_look
Sourceon_talk
Sourcescript_content
Sourcescript_content=(script_content : String | Nil)
Sourcescript_file
Sourcescript_file=(script_file : String | Nil)
Sourceset_property(key : String, value : String)
Sourceset_script(script_content : String)
Sourceupdate_interval
Sourceupdate_interval=(update_interval : Float32)
Source