-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement revert, use array for _prevActivePlayers & remove activePla…
…yersDone (#449) * feat: Implement `revert` flag and use array for `_prevActivePlayers` Contributes towards #445. `_prevActivePlayers` is now always an array, which will be empty unless `setActivePlayers` (or `turn.activePlayers`) is passed `{ revert: true }` at which point the previous state will be stored. If `activePlayers` becomes empty and there is something saved in `_prevActivePlayers`, the last item will be used to restore `activePlayers`. * feat: Remove `activePlayersDone`
- Loading branch information
1 parent
e421728
commit 6ecfd1f
Showing
5 changed files
with
28 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters