gilzoide / godot-lua-pluginscript

Godot PluginScript for the Lua language, currently based on LuaJIT's FFI
https://gilzoide.github.io/godot-lua-pluginscript/topics/README.md.html
MIT License
300 stars 21 forks source link

Script instance as struct #20

Closed gilzoide closed 1 year ago

gilzoide commented 2 years ago

This PR changes script and script instances to be structs, to maintain a more consistent behavior regarding the call of property getters and setters in __index and __newindex metamethods (#5). To bypass getters and setters, use rawget and rawset.

It also: