public static SimDescription DGSMakeSSimDescription(CASAgeGenderFlags age, CASAgeGenderFlags gender, WorldName homeWorld, uint outfitCategoriesToBuild) { Color[] hairColors; if (age == CASAgeGenderFlags.Elder) { hairColors = Genetics.GetRandomElderHairColor(); } else { hairColors = Genetics.GetGeneticHairColor(homeWorld); } float skinToneIndex = 0f; ResourceKey skinTone = Genetics.RandomSkin(false, homeWorld, ref skinToneIndex); return(DGSMakeSSimDescription(null, age, gender, skinTone, skinToneIndex, hairColors, homeWorld, outfitCategoriesToBuild, false)); }