Day 1 (yesterday)
How do I interconnect all these different modules and make them behave and interact as it was one ship? Hmm..
1. Hmm..make a component called "MasterEntity" with a member variable named "entityId"?
2. Use the tag manager for the master entity with an id prefix?
I'm experimenting with two components now:
"Children" component that would be attached to the "master" entity. (not sure if I need this one though).
"Parent" component that would be attached to any child entity.
Then I have a system that is called NestingSystem, that processes all entities with a Parent component and updates it's transformation (x,y,rotation) according to the transform of it's parent entity.
A thought: I might need to store the "local transformation" somewhere, because I have no way of calculating the "world transformation" if I don't have the local one.
edit: TagManager shouldn't be used for this purpose, only for very special entities like "PLAYER" or "TERRAIN" or something very specific and unique.