keeperfx
keeperfx copied to clipboard
Lua
not final yet, but works, will probably use code as a dependency instead, but for now it uses a precompiled dll
Hello @PieterVdc, what is this PR? It adds Lua scripting to KeeperFX instead of its own scripting language?
not as a replacement, but yeah as a second level script, still in early stage, but on the discord I uploaded a sample map that uses it https://discord.com/channels/480505152806191114/1051878771692675082
Why you have to bring lua.h
and others? I assume only luaconf.h
is necessary and other files should be attached using git submodule
or something like that.
Also API should be invented first. Raw ThingId is not userfriendly. Some userdata (not lightuserdata!) with list of thing-ids would be much better.
indeed, but I started with just a quick draft test to get a quick idea of what would be needed, before doing it proper and yeah started with the dll, but was going to replace it with luau, as a submodule, so will delete the stuff in lib after I switched