예제 #1
0
        public void Event_PlayerLeft(SSPlayer p)
        {
            // Module isnt on
            if (m_Games == null)
            {
                return;
            }
            Classes.BaseGame game = getGame(p.Frequency);

            if (game != null)
            {
                game.player_Remove(p);
            }
        }
예제 #2
0
        public void Event_PlayerFreqChange(SSPlayer p)
        {
            // Module isnt on
            if (m_Games == null)
            {
                return;
            }

            Classes.BaseGame joinGame  = getGame(p.Frequency);
            Classes.BaseGame leaveGame = getGame(p.OldFrequency);

            if (leaveGame != null && leaveGame.gameStatus() != Misc.BaseGameStatus.NotStarted)
            {
                leaveGame.player_Remove(p);
            }

            if (joinGame != null && joinGame.gameStatus() != Misc.BaseGameStatus.NotStarted && !joinGame.lockedStatus())
            {
                joinGame.player_Join(p);
            }
        }