UMAData.UMARecipe CreateMaleRecipe() { var recipe = new UMAData.UMARecipe(); recipe.slotDataList = new SlotData[numberOfSlots]; recipe.AddDna(umaDna); recipe.AddDna(umaTutorialDna); recipe.SetRace(raceLibrary.GetRace("HumanMale")); SlotData eyes = slotLibrary.InstantiateSlot("MaleEyes"); eyes.AddOverlay(overlayLibrary.InstantiateOverlay("EyeOverlay")); recipe.slotDataList[0] = eyes; SlotData mouth = slotLibrary.InstantiateSlot("MaleInnerMouth"); mouth.AddOverlay(overlayLibrary.InstantiateOverlay("InnerMouth")); recipe.slotDataList[1] = mouth; recipe.slotDataList[2] = slotLibrary.InstantiateSlot("MaleFace", new List <OverlayData> { overlayLibrary.InstantiateOverlay("MaleHead02"), overlayLibrary.InstantiateOverlay("MaleEyebrow01", Color.black) });; SlotData torso = slotLibrary.InstantiateSlot("MaleTorso", new List <OverlayData> { overlayLibrary.InstantiateOverlay("MaleBody02"), overlayLibrary.InstantiateOverlay("MaleUnderwear01") }); recipe.slotDataList[3] = torso; recipe.slotDataList[4] = slotLibrary.InstantiateSlot("MaleHands", torso.GetOverlayList()); recipe.slotDataList[5] = slotLibrary.InstantiateSlot("MaleLegs", torso.GetOverlayList()); recipe.slotDataList[6] = slotLibrary.InstantiateSlot("MaleFeet", torso.GetOverlayList()); return(recipe); }
/// <summary> /// Gets a race by name. /// </summary> /// <returns>The race.</returns> /// <param name="name">Name.</param> public RaceData GetRace(string name) { return(raceLibrary.GetRace(name)); }