public TileSetReader(TileManager masterManager, string tilesetName, ContentManager contentManager) { this.masterManager = masterManager; this.content = contentManager; name = tilesetName; this.path = TILESET_DIRECTORY + tilesetName + ".txt"; ReadFile(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); guiFont = Content.Load<SpriteFont>("GameGUI//GUIText"); healthFont = Content.Load<SpriteFont>("Monsters//HealthText"); tileManager = new TileManager(this, Content); menuManager = new MenuManager(this, Content); mapManager = new MapManager(this, Content); // TODO: use this.Content to load your game content here }