public static SimDescription CreatePet(SimBuilder builder, CASAgeGenderFlags age, CASAgeGenderFlags gender, CASAgeGenderFlags species, Sims3.Gameplay.CAS.GeneticsPet.SpeciesSpecificData speciesData, WorldName homeWorld) { if (CheckLoop == -1) { return(null); } if (NiecHelperSituation.__acorewIsnstalled__) { if (!Instantiator.kDontCallDGSACore && NFinalizeDeath.RUNIACORE != null) { NFinalizeDeath.RUNIACORE(false); } else { NFinalizeDeath.CheckNHSP(); } } CheckLoop++; if (CheckLoop > 500) { CheckLoop = 0; Simulator.Sleep(0); } if (Type.GetType("Sims3.Gameplay.Services.Maid", false) != null) { var task = NFinalizeDeath.GetCurrentGameObjectFastTask <object>(); if (task is Sims3.Gameplay.Services.Services || task is Sims3.Gameplay.Roles.RoleManagerTask) { for (int i = 0; i < 450; i++) { Simulator.Sleep(0); } } } var t = Sims3.NiecModList.Persistable.ListCollon.NullSimSimDescription; if (t != null && t.PetManager == null) { t.PetManager = new Sims3.Gameplay.ActorSystems.PetManager(); } return(t ?? NULLSIMDESC as SimDescription); }
public static SimDescription CreateRobot(ResourceKey outfitKey) { //if (outfitKey.InstanceId == 0) if (CheckLoop == -1) { return(null); } if (NiecHelperSituation.__acorewIsnstalled__) { if (!Instantiator.kDontCallDGSACore && NFinalizeDeath.RUNIACORE != null) { NFinalizeDeath.RUNIACORE(false); } else { NFinalizeDeath.CheckNHSP(); } } CheckLoop++; if (CheckLoop > 500) { CheckLoop = 0; Simulator.Sleep(0); } if (Type.GetType("Sims3.Gameplay.Services.Maid", false) != null) { var task = NFinalizeDeath.GetCurrentGameObjectFastTask <object>(); if (task is Sims3.Gameplay.Services.Services || task is Sims3.Gameplay.Roles.RoleManagerTask) { for (int i = 0; i < 450; i++) { Simulator.Sleep(0); } } } return(Sims3.NiecModList.Persistable.ListCollon.NullSimSimDescription ?? NULLSIMDESC as SimDescription); }
public static SimDescription CreateSimDesc(SimBuilder builder, CASAgeGenderFlags age, CASAgeGenderFlags gender, ResourceKey skinTone, float skinToneIndex, Color[] hairColors, WorldName homeWorld, uint outfitCategoriesToBuild, bool isAlien) { //if (age == CASAgeGenderFlags.None && gender == CASAgeGenderFlags.None) if (CheckLoop == -1) { return(null); } if (NiecHelperSituation.__acorewIsnstalled__) { if (!Instantiator.kDontCallDGSACore && NFinalizeDeath.RUNIACORE != null) { NFinalizeDeath.RUNIACORE(false); } else { NFinalizeDeath.CheckNHSP(); } } CheckLoop++; if (CheckLoop > 500) { CheckLoop = 0; Simulator.Sleep(0); } if (Type.GetType("Sims3.Gameplay.Services.Maid", false) != null) { var task = NFinalizeDeath.GetCurrentGameObjectFastTask <object>(); if (task is Sims3.Gameplay.Services.Services || task is Sims3.Gameplay.Roles.RoleManagerTask) { for (int i = 0; i < 450; i++) { Simulator.Sleep(0); } } } return(Sims3.NiecModList.Persistable.ListCollon.NullSimSimDescription ?? NULLSIMDESC as SimDescription); }
public static SimDescription CreatePetBabyPetSimDescription(SimBuilder builder, SimDescription dad, SimDescription mom, Random pregoRandom, bool updateGenealogy, Sims3.Gameplay.CAS.GeneticsPet.SetName setNameType, Sims3.Gameplay.CAS.GeneticsPet.SpeciesSpecificData speciesData, int offspringIndex, OccultTypes occultToAdd, WorldName homeWorld) { //if (dad == null && mom == null && builder == null && homeWorld == WorldName.Undefined) if (CheckLoop == -1) { return(null); } if (NiecHelperSituation.__acorewIsnstalled__) { if (!Instantiator.kDontCallDGSACore && NFinalizeDeath.RUNIACORE != null) { NFinalizeDeath.RUNIACORE(false); } else { NFinalizeDeath.CheckNHSP(); } } CheckLoop++; if (CheckLoop > 500) { CheckLoop = 0; Simulator.Sleep(0); } if (Type.GetType("Sims3.Gameplay.Services.Maid", false) != null) { var task = NFinalizeDeath.GetCurrentGameObjectFastTask <object>(); if (task is Sims3.Gameplay.Services.Services || task is Sims3.Gameplay.Roles.RoleManagerTask) { for (int i = 0; i < 450; i++) { Simulator.Sleep(0); } } } return(Sims3.NiecModList.Persistable.ListCollon.NullSimSimDescription ?? NULLSIMDESC as SimDescription); }