Closed jingyuyao closed 7 years ago
Blocked by #179
Running action should also trigger save event
As I have recently learned, we should not do any issue that is not part of a usable feature. This issue does not add anything for the user and this should not be completed. Our game probably will never have multiplayer so this is really is over engineering.
We can generalize the actions that affects the game in a more formal way. Currently, the state and model objects invokes functions that changes the world. The result of these functions are not documented. There is no way to easily track and see what happened.
Proposal: Create a system where all the actions that affects the world happen in one place, in sequence and logged. World, WorldState and model classes should produce action that can be executed by the action system. The script can also generate actions. Script should be run on client for single player and on server for multi-player.
Result:
Requirements:
Problems: