| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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
- }
- }
|