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)); }
private static Eyes ProcessEyeType(AsepriteSlice asepriteSlice) { var hairName = asepriteSlice.Name; var hairSource = asepriteSlice.Keys.First().Bounds.ToRectangle(); return(new Eyes(hairName, hairSource)); }
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)); }