예제 #1
0
        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());
        }
예제 #2
0
        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));
        }
예제 #3
0
        public IReadOnlyCollection <Eyes> GetContent(string path)
        {
            var data = _contentDeserializer.Get <AsepriteData>(path);

            return(data.Meta.Slices.Select(ProcessEyeType).ToArray());
        }