Open gynt opened 3 days ago
So is this meant as a new code modification interface?
I like the idea in general, even if it brings a bit of overhead.
I can see an issue with C++ modules, but I think at least I actually never bound logic code via C++. I certainly modify data in it, though.
I hope overhead is minimal as code changes are only done at runtime.
C++ modules are not supposed to modify code by writing or overriding the game's machine code. The Lua side of things is responsible for that.
Modifying data is absolutely fine of course and we don't need to track that
The modular system of UCP3 comes with the potential issue that code from different modules affects each other in an unintended way. This lua code is meant to address it.
There are three components:
The framework has a couple of ramifications: