private void OnDasherSet(object?sender, GameIdEventArgs e) { if (string.Equals(e.GameId, GameId, StringComparison.Ordinal)) { DasherSet?.Invoke(this, EventArgs.Empty); } }
public void SetDasher(string gameId, Player dasher) { UpdateGameState(gameId, gs => new DasherSetGameState(dasher, gs)); DasherSet?.Invoke(this, new GameIdEventArgs(gameId)); }