Weekly post
June 8, 2024 • 1 min
- June 3: Lua bindings for ability functions defined in Lua wip. Using sol2.
- June 7: unions for Lua will make
- June 8: decided not to use unions, it's easier to just use struct and also required since the switch to having any shape ability type able to use prototypes.
- No longer able to use sol due to extremely long compile times. Probably from template stuff. Tried plenty of workarounds but none of them really help. The alternatives seem: try LuaWrapper and/or make my own codegen that makes Lua c API calls directly for every registered function
- What's going well: the town level
- What needs work: Lua API
- What I hope in future: i hope this Lua API won't sidetrack me. I hope it turns out useful and not buggy and doesn't cause insecurities in the codebase and also that modding with it will be fun for future players.