Example #1
0
 /// <summary>
 /// Constructor of LevelReader, creates a new GameObjectFactory
 /// </summary>
 /// <param name="contentManager">Used to create objects</param>
 public LevelReader(ContentManager contentManager)
 {
     //Private fields are set
     _contentManager    = contentManager;
     _gameObjectFactory = new GameObjectFactory();
 }
 public void Init()
 {
     _gameObjectFactory = new GameObjectFactory();
     _contentManager    = new TestContentManager();
     _level             = new Level();
 }