public void SetFromStoreData(StoreData storeData) { Nickname = storeData.CoreData.Nickname; CreateId = storeData.CreateId; FontRegion = storeData.CoreData.FontRegion; FavoriteColor = storeData.CoreData.FavoriteColor; Gender = storeData.CoreData.Gender; Height = storeData.CoreData.Height; Build = storeData.CoreData.Build; Type = storeData.CoreData.Type; RegionMove = storeData.CoreData.RegionMove; FacelineType = storeData.CoreData.FacelineType; FacelineColor = storeData.CoreData.FacelineColor; FacelineWrinkle = storeData.CoreData.FacelineWrinkle; FacelineMake = storeData.CoreData.FacelineMake; HairType = storeData.CoreData.HairType; HairColor = storeData.CoreData.HairColor; HairFlip = storeData.CoreData.HairFlip; EyeType = storeData.CoreData.EyeType; EyeColor = storeData.CoreData.EyeColor; EyeScale = storeData.CoreData.EyeScale; EyeAspect = storeData.CoreData.EyeAspect; EyeRotate = storeData.CoreData.EyeRotate; EyeX = storeData.CoreData.EyeX; EyeY = storeData.CoreData.EyeY; EyebrowType = storeData.CoreData.EyebrowType; EyebrowColor = storeData.CoreData.EyebrowColor; EyebrowScale = storeData.CoreData.EyebrowScale; EyebrowAspect = storeData.CoreData.EyebrowAspect; EyebrowRotate = storeData.CoreData.EyebrowRotate; EyebrowX = storeData.CoreData.EyebrowX; EyebrowY = storeData.CoreData.EyebrowY; NoseType = storeData.CoreData.NoseType; NoseScale = storeData.CoreData.NoseScale; NoseY = storeData.CoreData.NoseY; MouthType = storeData.CoreData.MouthType; MouthColor = storeData.CoreData.MouthColor; MouthScale = storeData.CoreData.MouthScale; MouthAspect = storeData.CoreData.MouthAspect; MouthY = storeData.CoreData.MouthY; BeardColor = storeData.CoreData.BeardColor; BeardType = storeData.CoreData.BeardType; MustacheType = storeData.CoreData.MustacheType; MustacheScale = storeData.CoreData.MustacheScale; MustacheY = storeData.CoreData.MustacheY; GlassType = storeData.CoreData.GlassType; GlassColor = storeData.CoreData.GlassColor; GlassScale = storeData.CoreData.GlassScale; GlassY = storeData.CoreData.GlassY; MoleType = storeData.CoreData.MoleType; MoleScale = storeData.CoreData.MoleScale; MoleX = storeData.CoreData.MoleX; MoleY = storeData.CoreData.MoleY; Reserved = 0; }
public bool IsValid(bool acceptEmptyNickname = false) { if (!Nickname.IsValid() || (!acceptEmptyNickname && Nickname.IsEmpty())) { return(false); } for (int i = 0; i < ElementInfos.Length; i++) { if (!IsElementValid((ElementInfoIndex)i)) { return(false); } } return(true); }