Skip to content

translate actions to events instead of commands

Francesco Pischedda requested to merge actions-to-events into main

Previously actions where translated to commands that would have updated game and UI state; it was a convenient transition from the previous approact because it leveraged the fact that UI and game state shared the same structure so, issuing the same commands was a win, you just apply the same changes to both states.

Given that UI and game logic may rely on different state representation it feels more natural to describe what have changed and apply the changes in a way that makes sense depending on the context.

Merge request reports