/// <summary> /// Updates the game variables and managers. /// </summary> /// <param name="gameTime"></param> protected override void Update(GameTime gameTime) { M_InputManager.Update(); M_MapManager.Update(); M_PartyManager.Update(); M_MenuManager.Update(); M_MapManager.Update(); base.Update(gameTime); }
/// <summary> /// Initalizes the objects and managers in the game. /// </summary> protected override void Initialize() { base.Initialize(); M_ContentManager.Init(Content); M_GlobalManager.Init(); M_TextManager.Init(); M_InputManager.Init(); M_PartyManager.Init(); M_MenuManager.Init(); I_Inventory.Init(); M_MapManager.Init(); }
/// <summary> /// Main draw call for the GPU. /// </summary> /// <param name="gameTime"></param> protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.White); sprite_batch.Begin(SpriteSortMode.FrontToBack); M_MapManager.Draw(sprite_batch); M_PartyManager.Draw(sprite_batch); M_MenuManager.Draw(sprite_batch); M_MapManager.Draw(sprite_batch); sprite_batch.End(); base.Draw(gameTime); }