Example #1
0
        public override void unloadData()
        {
            log("Unloading", "unloadData");

            GridEnforcer.OnPlacementViolation -= eventPlacementViolation;
            GridEnforcer.OnCleanupViolation   -= eventCleanupViolation;
            GridEnforcer.OnCleanupTimerStart  -= eventCleanupTimerStart;
            GridEnforcer.OnCleanupTimerEnd    -= eventCleanupTimerEnd;
            ControlPoint.OnRewardsDistributed -= notifyPlayersOfCPResults;

            if (m_LocalReceiver != null)
            {
                m_MailMan.localMsgSent -= m_LocalReceiver.incomming;
                m_LocalReceiver.unload();
                m_LocalReceiver = null;
            }

            m_MailMan.unload();

            if (!MyAPIGateway.Utilities.IsDedicated)
            {
                m_CmdProc.shutdown();
            }

            m_RoundTimer.Dispose();
            m_RoundTimer = null;
            m_SaveTimer.Dispose();
            m_SaveTimer = null;

            s_Logger = null;
        }
Example #2
0
 public override void unloadData()
 {
     log("Unloading", "unloadData");
     m_CmdProc.shutdown();
     m_MailMan.unload();
 }