WeaselGames / godot_luaAPI

Godot LuaAPI
https://luaapi.weaselgames.info
Other
361 stars 27 forks source link

Add permissive mode #127

Closed Trey2k closed 1 year ago

Trey2k commented 1 year ago

Currently if a object does not define an __index or a lua_fields method all fields/methods will be allowed. And if it does its treated as a whitelist.

This PR makes it so if its not defined by default no fields/methods will be allowed. And adds a permissive mode which when enabled will allow all fields/methods by default and treat lua_fields as a blacklist instead.

__newindex and __index still take priority over all though.