Example #1
0
        public void UnregisterEvents()
        {
            player = new Handlers.Player();

            GPlayer.Died -= player.killing;


            player = null;
        }
        public void registerEvents()
        {
            player = new Handlers.Player();
            server = new Handlers.Server();

            GServer.WaitingForPlayers         += server.WaitingForPlayers;
            GServer.RoundStarted              += server.RoundStarted;
            GServer.RespawningTeam            += server.CassieSpawnMgr;
            GServer.EndingRound               += server.OnRoundEnd;
            GServer.SendingRemoteAdminCommand += commands.Commands;

            GPlayer.Left         += player.OnLeft;
            GPlayer.Joined       += player.OnJoin;
            GPlayer.Escaping     += player.OnEscaping;
            GPlayer.ChangingRole += player.onRoleChange;
        }
Example #3
0
        public void registerEvents()
        {
            player = new Handlers.Player();

            GPlayer.Died += player.killing;
        }