示例#1
0
 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
     });
 }
示例#2
0
 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
     });
 }
示例#3
0
 public static Models.Appearance Map(Appearance data)
 {
     return(DataMapper.Map <Models.Appearance, Appearance>(data));
 }