示例#1
0
        protected override void Execute(IOnlineConnection Host)
        {
            lock (Owner.ListRoomPlayer)
            {
                for (int P = 0; P < Owner.ListRoomPlayer.Count; ++P)
                {
                    if (Owner.ListRoomPlayer[P].ConnectionID == RoomPlayerID)
                    {
                        Owner.ListRoomPlayer.RemoveAt(P);
                    }
                }
            }

            if (Client.TripleThunderGame == null)
            {
                MissionSelectScreen.UpdateReadyOrHost();
            }
            else
            {
                for (int P = Client.TripleThunderGame.ListLocalPlayer.Count - 1; P >= 0; P--)
                {
                    if (Client.TripleThunderGame.ListLocalPlayer[P].InGameRobot.ID == InGamePlayerID)
                    {
                        Client.TripleThunderGame.ListLocalPlayer.RemoveAt(P);
                        break;
                    }
                }
            }
        }
示例#2
0
        protected override void Execute(IOnlineConnection Host)
        {
            foreach (Player ActivePlayer in Owner.ListRoomPlayer)
            {
                if (ActivePlayer.ConnectionID == PlayerID)
                {
                    ActivePlayer.PlayerType = PlayerType;
                }
            }

            MissionSelectScreen.UpdateReadyOrHost();
        }