public IReadOnlyCollection <Head> GetContent(string path) { var spriteMap = _spriteMapLoader.GetContent(path); var heads = _contentDeserializer.Get <AsepriteData>(path); return(heads.Meta.Slices.Select(x => ProcessHeadType(x, spriteMap.Image)).ToArray()); }
public AsepriteSpriteMap GetContent(string path) { var asepriteData = _contentDeserializer.Get <AsepriteData>(path); var name = Path.GetFileNameWithoutExtension(asepriteData.Meta.Image); var image = _contentChest.Get <Texture2D>(Path.Combine(Path.GetDirectoryName(path) ?? "", Path.GetFileNameWithoutExtension(path))); return(new AsepriteSpriteMap(name, image, asepriteData.Meta.Slices)); }
public IReadOnlyCollection <Eyes> GetContent(string path) { var data = _contentDeserializer.Get <AsepriteData>(path); return(data.Meta.Slices.Select(ProcessEyeType).ToArray()); }