using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tutorial013.States { public abstract class State { #region Fields protected ContentManager _content; protected GraphicsDevice _graphicsDevice; protected Game1 _game; #endregion #region Methods public abstract void Draw(GameTime gameTime, SpriteBatch spriteBatch); public abstract void PostUpdate(GameTime gameTime); public State(Game1 game, GraphicsDevice graphicsDevice, ContentManager content) { _game = game; _graphicsDevice = graphicsDevice; _content = content; } public abstract void Update(GameTime gameTime); #endregion } }