Closed Mephistofeles closed 10 years ago
I think this can be useful ! This change break unit tests ? Have you tried to implement this?
Enviado via iPhone
Em 10/02/2014, às 20:51, Mephistofeles notifications@github.com escreveu:
I cannot create entity in entity system during processing, if that entity has components required by the system. It's caused by
this.Refresh(entity); in EntityManager.cs while adding or removing components. I don't know if it's a design decision, but if not I suggest changing this to
this.entityWorld.RefreshEntity(entity); This way it won't modify collection before the next update.
— Reply to this email directly or view it on GitHub.
I changed the file, test passed. I submitted a pull request.
I cannot create entity in entity system during processing, if that entity has components required by the system. It's caused by
in EntityManager.cs while adding or removing components. I don't know if it's a design decision, but if not I suggest changing this to
This way it won't modify collection before the next update.