StopPhase() public method

public StopPhase ( byte player, byte phase ) : void
player byte
phase byte
return void
示例#1
0
        public void SetPhase(byte phase, byte nextPhase, bool force)
        {
            var stopPlayers = _phaseStopPlayers.Where(x => x.Item2 == phase).ToList();

            if (stopPlayers.Count > 0 && force == false)
            {
                var stopPlayer = stopPlayers.First();
                _phaseStopPlayers.Remove(stopPlayer);
                _broadcaster.StopPhase(stopPlayer.Item1, stopPlayer.Item2);
                return;
            }
            _broadcaster.SetPhase(phase, nextPhase, force);
        }