I do have some ideas where this is handy. A entity-clone method would need to clone all components, too, though, so we don't accidentally end up with several entities referencing the same component instance.
Hence, the idea is that IEntity exposes a clone() method, which returns a new entity with cloned components.
I do have some ideas where this is handy. A entity-clone method would need to clone all components, too, though, so we don't accidentally end up with several entities referencing the same component instance.
Hence, the idea is that
IEntity
exposes aclone()
method, which returns a new entity with cloned components.