Ejemplo n.º 1
0
        private static Head ProcessHeadType(AsepriteSlice asepriteSlice, Texture2D texture)
        {
            var headName   = asepriteSlice.Name;
            var headSource = asepriteSlice.Keys.First().Bounds.ToRectangle();

            return(new Head(headName, headSource, texture));
        }
Ejemplo n.º 2
0
        private static Eyes ProcessEyeType(AsepriteSlice asepriteSlice)
        {
            var hairName   = asepriteSlice.Name;
            var hairSource = asepriteSlice.Keys.First().Bounds.ToRectangle();

            return(new Eyes(hairName, hairSource));
        }
Ejemplo n.º 3
0
        private static Hair ProcessHairType(AsepriteSlice asepriteSlice, Texture2D texture)
        {
            var hairName   = asepriteSlice.Name;
            var hairSource = asepriteSlice.Keys.First().Bounds.ToRectangle();

            return(new Hair(hairName, hairSource, texture));
        }