public static Sprite GetSpriteFromFile(string filename, string basePath = null) { String xmlInput = TestHelpers.GetInputFile(filename); var xmlNode = XElement.Parse(xmlInput); var reader = new SpriteXmlReader(); if (basePath == null) { return reader.LoadSprite(xmlNode); } else { return reader.LoadSprite(xmlNode, basePath); } }
public TilesetXmlReader() { _spriteReader = new SpriteXmlReader(); }