public int[] ToAppearanceData(Appearance appearance) { return(new int[] { (int)appearance.Gender, appearance.Gender == Gender.Female ? appearance.FemaleHairModelNumber : appearance.MaleHairModelNumber, (int)appearance.HairColor, appearance.EyesModelNumber, (int)appearance.SkinColor, appearance.BeardModelNumber, (int)appearance.BeardColor, appearance.BrowsModelNumber, (int)appearance.BrowColor, appearance.MouthModelNumber }); }
private static DataModels.SyntyAppearance GenerateSyntyAppearance(Appearance appearance) { return(new DataModels.SyntyAppearance { Id = Guid.NewGuid(), Gender = appearance.Gender, SkinColor = GetHexColor(appearance.SkinColor), HairColor = GetHexColor(appearance.HairColor), BeardColor = GetHexColor(appearance.BeardColor), StubbleColor = GetHexColor(appearance.BeardColor), WarPaintColor = GetHexColor(appearance.BeardColor), Hair = 0, FacialHair = 0, Head = 0, Eyebrows = 0, EyeColor = "#000000", HelmetVisible = appearance.HelmetVisible }); }
public static Models.Appearance Map(Appearance data) { return(DataMapper.Map <Models.Appearance, Appearance>(data)); }