class

PointClickEngine::Scripting::LuaEnvironment

Inherits Reference < Object

Sets up and manages the Lua scripting environment

Constructors

Instance methods

call_function(name : String, *args) : Luajit::LuaAny | Nil

Call a Lua function

Source
execute(script : String) : Bool

Execute a Lua script in the environment

Source
execute_file(path : String) : Bool

Execute a file

Source
get_global(name : String) : Luajit::LuaAny | Nil

Get a global variable

Source
has_global?(name : String) : Bool

Check if a global exists

Source
set_global(name : String, value)

Set a global variable

Source
setup

Set up basic Lua environment with utility functions

Source