private void StressTest(int level) { int mission = 50 * level; int items = 100 * level; int skills = 50 * level; int actors = 100 * level; for (int i = 0; i < mission; i++) { Mission m = Globals.campaign.GetMissionDataCopy("test_mission_00"); m.ChangeKey(i.ToString()); campaign.GetMissionHandler().AddMission(m); } for (int i = 0; i < items; i++) { Item item = (Item)campaign.GetItemCopy(("synth_helm")); item.ChangeKey(i.ToString()); campaign.GetAllItems().AddEntry(item); } for (int i = 0; i < skills; i++) { Skill item = (Skill)campaign.contentLibrary.skillDatabase.GetCopy("fire_ball"); item.ChangeKey(i.ToString()); campaign.contentLibrary.skillDatabase.AddEntry(item); } for (int i = 0; i < actors; i++) { ActorData item = (ActorData)campaign.contentLibrary.actorDB.GetCopy(("abagail")); item.ChangeKey(i.ToString()); campaign.contentLibrary.actorDB.AddEntry(item); } Debug.Log("Missions: " + mission + " Items: " + items + " Skills: " + skills + " Actors: " + actors); SaveStateBase sf = new SaveStateBase(campaign); SaveLoadManager.Savecampaign(campaign); }