コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public TilesetXmlReader()
 {
     _spriteReader = new SpriteXmlReader();
 }