Open sigmareaver opened 4 days ago
No, you can't add a component whose type is defined in a lua script. Is it possible? how to do that? I don't know, sorry.
I think it may be possible, by registering sol::table component class in C++, but one would have to devise a way of tracking the different Lua objects (component types). I will probably look into this eventually, unless someone beats me to it.
It's in EnTT TODO list, I'll keep my on that.
- runtime types support for meta for types that aren't backed by C++ types
Does this library have that functionality? It wasn't clear to me from the readme, but I'm interested in doing something like this:
Not exactly a perfect example, but hopefully it conveys my meaning.