public override void ExposeData() { SpeciesControl[] speciesList = new SpeciesControl[] { Twilek, Togruta, Wookiee, Ewok, Rodian, }; base.ExposeData(); Scribe_Values.Look(ref spawnChance, "StarWarsRaces.SpawnChance", 70f); for (int x = 0; x < speciesList.Length; x++) { Scribe_Values.Look(ref speciesList[x].Colonist, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsColonist", true); Scribe_Values.Look(ref speciesList[x].Wanderer, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsWanderer", true); Scribe_Values.Look(ref speciesList[x].Refugee, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsRefugee", true); Scribe_Values.Look(ref speciesList[x].Slave, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsSlave", false); Scribe_Values.Look(ref speciesList[x].Pirate, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsPirate", true); Scribe_Values.Look(ref speciesList[x].Outlander, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsOutlander", false); Scribe_Values.Look(ref speciesList[x].Tribal, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsTribal", false); Scribe_Values.Look(ref speciesList[x].Rebels, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsRebels", true); Scribe_Values.Look(ref speciesList[x].Scum, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsBounty", true); Scribe_Values.Look(ref speciesList[x].Empire, "StarWarsRaces." + speciesList[x].Label + ".IncludeAsEmpire", false); } if (Scribe.mode == LoadSaveMode.Saving) { RaceSettingsUpdater.AdjustSpawnChance(); Factions.AddAliensToNPCFactions(); } }
private static void InitLib() { SettingsController.Settings.ExposeData(); RaceSettingsUpdater.AdjustSpawnChance(); Factions.AddAliensToNPCFactions(); }