Exemplo n.º 1
0
        /// <summary>
        /// 
        /// </summary>
        private GameLoop()
        {
            this.gameStillRunning = true;

            this.sceneManager = null;
            this.sceneBrain = null;
            this.spawnerManager = null;
            this.updateRenderer = null;
            this.timerManager = null;
            this.collisionManager = null;

            gameLoopThread = new Thread(new ThreadStart(this.runLoop));
            gameLoopThread.SetApartmentState(ApartmentState.STA);
            gameLoopThread.Name = "GameLoopThread";
            gameLoopThread.IsBackground = true; //ensures that will be terminated on application close
        }
Exemplo n.º 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="spawnerManager"></param>
 public void setSpawnerManager(ISpawnerManager spawnerManager)
 {
     this.spawnerManager = spawnerManager;
 }