UEXDev

GameManager Impl

May 8th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. public class GameManager : DrawableGameComponent, IGameManager
  2. {
  3.     Texture2D texture;
  4.     SpriteFont font;
  5.  
  6.     public GameManager(Game game)
  7.         : base(game)   
  8.     {
  9.  
  10.     }
  11.  
  12.     protected override void LoadContent()
  13.     {
  14.         base.LoadContent();
  15.  
  16.         texture = Game.Content.Load<Texture2D>("whiteQuad");
  17.         font = Game.Content.Load<SpriteFont>("sysFont");
  18.     }
  19.  
  20.     public Terrain Terrain { get; private set; }
  21.  
  22.     public void BuildTerrain()
  23.     {
  24.         Terrain = new Terrain();
  25.         Terrain.BuildMap(Game.GraphicsDevice);
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment