toClientView static method

Game<Event> toClientView(
  1. Game<Event> g
)

Optionally converts the game from a full game state to a view of the game from the client's perspective

Implementation

static Game toClientView(Game g) => _toClientViews[g.type]!(g);