boardgameio / boardgame.io

State Management and Multiplayer Networking for Turn-Based Games
https://boardgame.io
MIT License
10k stars 706 forks source link

endPhaseIf doesn't have a global equivalent #357

Closed nicolodavis closed 5 years ago

nicolodavis commented 5 years ago

Most options can be defined per-phase or globally. We should do this for endPhaseIf as well (especially so it can be used in the default phase).

Code location: https://github.com/nicolodavis/boardgame.io/blob/master/src/core/flow.js#L315 Compare with: https://github.com/nicolodavis/boardgame.io/blob/master/src/core/flow.js#L329

nicolodavis commented 5 years ago

Obsolete with the upcoming phase redesign.