Beispiel #1
0
        protected override void Dispose(bool connectionLost)
        {
            UpdateListTimer.Stop();
            UpdateRecordTimer.Stop();

            HostPlugin.RankChanged     -= HostPlugin_RankChanged;
            HostPlugin.RankingsChanged -= HostPlugin_RankingsChanged;
            Context.RPCClient.Callbacks.PlayerConnect -= Callbacks_PlayerConnect;
            Context.RPCClient.Callbacks.EndRace       -= Callbacks_EndRace;

            if (!connectionLost)
            {
                SendEmptyManiaLinkPage(_dedimaniaManiaLinkPageID);
                SendEmptyManiaLinkPage(_dedimaniaRecordListManiaLinkPageID);
            }
        }
Beispiel #2
0
        protected override void Dispose(bool connectionLost)
        {
            UpdateListTimer.Stop();
            UpdateLocalRecordTimer.Stop();

            HostPlugin.PlayerNewRecord                -= HostPlugin_PlayerNewRecord;
            HostPlugin.LocalRecordsDetermined         -= HostPlugin_LocalRecordsDetermined;
            HostPlugin.PlayerWins                     -= HostPlugin_PlayerWins;
            Context.RPCClient.Callbacks.EndRace       -= Callbacks_EndRace;
            Context.RPCClient.Callbacks.PlayerConnect -= Callbacks_PlayerConnect;
            Context.RPCClient.Callbacks.PlayerChat    -= Callbacks_PlayerChat;

            if (!connectionLost)
            {
                SendEmptyManiaLinkPage(_localRecordListManiaLinkPageID);
                SendEmptyManiaLinkPage(_localRecordManiaLinkPageID);
                SendEmptyManiaLinkPage(_pbManiaLinkPageID);
            }
        }