You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I know this is a little bit off topic. But maybe you can help me. Let's say I want to write a strategy based game where you can create and place new "entities" (e.g. a warrior) on a battle field. This warrior can move, attack and so on. I I like to provide a Undo/Redo functionality for the game. Would it be possible have an separate layer for Undo/Redo or should Undo/Redo be integrated into the core of Entitas?
Undo/Redo should be capable of following use cases:
Create entity <-> Delete entity
Add component to entity <-> Remove component from entity
Set new value of property on component -> Restore old value on component
Any hint would be greatly appreciated.
Thanks,
Sven
The text was updated successfully, but these errors were encountered:
in order to Undo/Redo we would need some kind of history of actions or sth like that. I was already thinking of sth like this and came to the conclusion, that this should be part of the application layer and not part of Entitas. Although it might be nice to have such functionality built in, I fear that it would have an impact on overall performance, even if you are not using this feature. I try to keep the core very small and efficient, so my suggestion would be to selectively historicize the entities that should be affected by this feature. But if you have a nice idea, how we could add this feature without sacrificing overall performance, I'd love to discuss that with you. Feel free to make a pull request.
Hi,
I know this is a little bit off topic. But maybe you can help me. Let's say I want to write a strategy based game where you can create and place new "entities" (e.g. a warrior) on a battle field. This warrior can move, attack and so on. I I like to provide a Undo/Redo functionality for the game. Would it be possible have an separate layer for Undo/Redo or should Undo/Redo be integrated into the core of Entitas?
Undo/Redo should be capable of following use cases:
Any hint would be greatly appreciated.
Thanks,
Sven
The text was updated successfully, but these errors were encountered: