PlayerSettings() 공개 메소드

public PlayerSettings ( byte playerId, bool invertedTable, bool spectator ) : void
playerId byte
invertedTable bool
spectator bool
리턴 void
예제 #1
0
파일: Handler.cs 프로젝트: totalgit/OCTGN
        public void PlayerSettings(byte player, bool invertedTable)
        {
            PlayerInfo p;

            // The player may have left the game concurently
            if (!_players.TryGetValue(player, out p))
            {
                return;
            }
            p.InvertedTable = invertedTable;
            _broadcaster.PlayerSettings(player, invertedTable);
        }
예제 #2
0
파일: Handler.cs 프로젝트: karlnp/OCTGN
        public void PlayerSettings(byte player, bool invertedTable)
        {
            PlayerInfo p;

            // The player may have left the game concurrently
            p = State.Instance.Players.FirstOrDefault(x => x.Id == player);
            if (p == null)
            {
                return;
            }
            p.InvertedTable = invertedTable;
            _broadcaster.PlayerSettings(player, invertedTable);
        }
예제 #3
0
        public void PlayerSettings(byte player, bool invertedTable, bool spectator)
        {
            if (this.GameStarted)
            {
                return;
            }
            PlayerInfo p;

            // The player may have left the game concurrently
            p = State.Instance.Players.FirstOrDefault(x => x.Id == player);
            if (p == null)
            {
                return;
            }
            if (p.InvertedTable != invertedTable || p.IsSpectator != spectator)
            {
                p.InvertedTable = invertedTable;
                p.IsSpectator   = spectator;
                _broadcaster.PlayerSettings(player, invertedTable, spectator);
            }
        }