PointClickEngine::Scripting::ScriptAPIRegistry
Inherits Reference < Object
Manages registration of Crystal functions into Lua
Constructors
new(lua : Luajit::LuaState)
SourceInstance methods
add_module_function(module_name : String, function_name : String, lua_code : String)
Add a function to a module
create_wrapper(lua_function : String, crystal_function : String, *args)
Create a Lua wrapper function that calls a Crystal function
Register a Crystal function to be callable from Lua
Register a callback that returns values
Register a void callback (no return values)