Exemple #1
0
        protected override void UnloadData()
        {
            base.UnloadData();

            m_thread.StopAndJoin();
            m_thread = null;

            m_botCollection = null;
        }
        protected override void UnloadData()
        {
            base.UnloadData();

            m_thread.StopAndJoin();
            m_thread = null;

            m_botCollection = null;
        }
Exemple #3
0
        public override void LoadData()
        {
            base.LoadData();

            Sync.Players.NewPlayerRequestSucceeded += PlayerCreated;
            Sync.Players.LocalPlayerRemoved        += PlayerRemoved;

            m_botCollection = new MyBotCollection();

            m_thread = new MyAIThread(m_botCollection);
            m_thread.Start();
        }
        public override void LoadData()
        {
            base.LoadData();

            Sync.Players.NewPlayerRequestSucceeded += PlayerCreated;
            Sync.Players.LocalPlayerRemoved += PlayerRemoved;

            m_botCollection = new MyBotCollection();

            m_thread = new MyAIThread(m_botCollection);
            m_thread.Start();
        }
Exemple #5
0
 internal MyAIThread(MyBotCollection bots)
 {
     m_bots = bots;
     m_thread = new Thread(ThreadStart);
     m_shouldRun = true;
 }
 internal MyAIThread(MyBotCollection bots)
 {
     m_bots      = bots;
     m_thread    = new Thread(ThreadStart);
     m_shouldRun = true;
 }