S0lll0s wrote:
You can use functions aswell. All Lua types are created equal
And it works! Now I can fetch the necessary userdata for my entities when loading the level again, and when saving I only need to determine by the type of the userdata which table to look at for the metadata. I can assign the userdata to my components directly as usual.
So now it seems I can move forward.