Ejemplo n.º 1
0
        protected override void UnloadData()
        {
            base.UnloadData();

            m_thread.StopAndJoin();
            m_thread = null;

            m_botCollection = null;
        }
Ejemplo n.º 2
0
        protected override void UnloadData()
        {
            base.UnloadData();

            m_thread.StopAndJoin();
            m_thread = null;

            m_botCollection = null;
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
0
 internal MyAIThread(MyBotCollection bots)
 {
     m_bots = bots;
     m_thread = new Thread(ThreadStart);
     m_shouldRun = true;
 }
Ejemplo n.º 6
0
 internal MyAIThread(MyBotCollection bots)
 {
     m_bots      = bots;
     m_thread    = new Thread(ThreadStart);
     m_shouldRun = true;
 }