/// <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 }
/// <summary> /// /// </summary> /// <param name="updateRenderer"></param> public void setUpdateRenderer(IUpdateRenderer updateRenderer) { this.updateRenderer = updateRenderer; }