protected override void Draw(GameTime gameTime) { var view = this.GraphicsDevice.Viewport; if (this.CurrentMap != null) { this.GraphicsDevice.Clear(this.CurrentMap.IsInside ? new Color(36, 39, 51) : Color.Aqua); MapRenderer.RenderMap(this.SpriteBatch, this.CurrentMap, view, this.Camera); } else { this.GraphicsDevice.Clear(Color.Black); } InterfaceManager.Draw(this.SpriteBatch, view, this.Camera); CutsceneManager.Draw(this.SpriteBatch, view); }
protected override void Update(GameTime gameTime) { InterfaceManager.Update(gameTime); InputManager.Update(this.CurrentMap, this.Camera); CutsceneManager.Update(); foreach (var map in this.Maps.Values) { map.Update(gameTime, map == this.CurrentMap); } if ((CurrentTime - this.lastRealTimeUpdate).Minutes >= 10) { this.ForceRealTimeUpdate(); } this.Camera.Update(this.CurrentMap); }