示例#1
0
        public void Start()
        {
            lock (Data._syncStop)
            {
                if (GameMode == eGameMode.FLAG)
                {
                    SetCaptain();
                }

                GSPacketIn pkg = new GSPacketIn((byte)ePackageType.GAME_START);

                _gameState = eGameState.PLAY;
                //IsTakeOut = false;

                if (RoomType == eRoomType.PAIRUP && MatchGame != null)
                {
                    MatchGame.GameState = eGameState.PLAY;
                    //MatchGame.IsTakeOut = false;
                }

                _processor.OnStarting(this, pkg);

                SendToAll(pkg);

                _processor.OnStarted(this);
            }
        }