Skip to content

Unified game events: introduces `STATE_CHANGE` as a single event for all state mutations, deprecating `PLAYER_MOVE` and `RESET`.

Choose a tag to compare

@TenGosc007 TenGosc007 released this 18 May 20:14
· 18 commits to main since this release

1.3.0 - 2026-05-18

Added

  • New GameEvent.STATE_CHANGE event emitted by both savePlayerMove and reset — single subscription point for all state mutations
  • GameEventMap[STATE_CHANGE] typed with GameEventPayload

Changed

  • savePlayerMove now also emits GameEvent.STATE_CHANGE after GameEvent.PLAYER_MOVE
  • reset now also emits GameEvent.STATE_CHANGE after GameEvent.RESET
  • GameEvent.PLAYER_MOVE and GameEvent.RESET marked @deprecated — use STATE_CHANGE instead
  • Corresponding GameEventMap entries for PLAYER_MOVE and RESET marked @deprecated