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

            DasherSet?.Invoke(this, new GameIdEventArgs(gameId));
        }