public static void ReloadAllBackstories() { foreach (Backstory item in DirectXmlLoader.LoadXmlDataInResourcesFolder <Backstory>("Backstories/Shuffled")) { item.PostLoad(); item.ResolveReferences(); foreach (string item2 in item.ConfigErrors(false)) { Log.Error(item.Title + ": " + item2); } BackstoryDatabase.AddBackstory(item); } SolidBioDatabase.LoadAllBios(); }
public static void ReloadAllBackstories() { foreach (Backstory current in DirectXmlLoader.LoadXmlDataInResourcesFolder <Backstory>("Backstories/Shuffled")) { current.PostLoad(); current.ResolveReferences(); foreach (string current2 in current.ConfigErrors(false)) { Log.Error(current.Title + ": " + current2); } BackstoryDatabase.AddBackstory(current); } SolidBioDatabase.LoadAllBios(); }
public static void ReloadAllBackstories() { foreach (Backstory backstory in DirectXmlLoader.LoadXmlDataInResourcesFolder <Backstory>("Backstories/Shuffled")) { backstory.PostLoad(); backstory.ResolveReferences(); foreach (string str in backstory.ConfigErrors(false)) { Log.Error(backstory.title + ": " + str, false); } BackstoryDatabase.AddBackstory(backstory); } SolidBioDatabase.LoadAllBios(); }
public static void ReloadAllBackstories() { foreach (Backstory item in DirectXmlLoader.LoadXmlDataInResourcesFolder <Backstory>("Backstories/Shuffled")) { DeepProfiler.Start("Backstory.PostLoad"); try { item.PostLoad(); } finally { DeepProfiler.End(); } DeepProfiler.Start("Backstory.ResolveReferences"); try { item.ResolveReferences(); } finally { DeepProfiler.End(); } foreach (string item2 in item.ConfigErrors(ignoreNoSpawnCategories: false)) { Log.Error(item.title + ": " + item2); } DeepProfiler.Start("AddBackstory"); try { AddBackstory(item); } finally { DeepProfiler.End(); } } SolidBioDatabase.LoadAllBios(); }