public static void LoadData()
 {
     Context.LoadPluginManager(Path.Combine(Application.StartupPath, Context.Config.Plugins_Directory));
     Context.LoadLevel(ImportExtensions.Fullpath(Application.StartupPath, "Levels.xml"));
     Context.ImportZips(false);
     Context.ImportSkills(false);
     Context.ImportLanguages(false);
     Context.ImportSpells(false);
     Context.ImportItems(false);
     Context.ImportBackgrounds(false);
     Context.ImportRaces(false);
     Context.ImportSubRaces(false);
     Context.ImportStandaloneFeatures(false);
     Context.ImportConditions(false);
     Context.ImportMagic(false);
     Context.ImportClasses(false, true);
     Context.ImportSubClasses(false, true);
     foreach (ClassDefinition c in Context.Classes.Values)
     {
         c.ApplyKeywords(Context);
     }
     foreach (SubClass c in Context.SubClasses.Values)
     {
         c.ApplyKeywords(Context);
     }
     Context.ImportMonsters(false);
 }
Example #2
0
 public static void LoadData()
 {
     Context.LoadPluginManager(Path.Combine(Application.StartupPath, Context.Config.Plugins_Directory));
     Context.LoadLevel(ImportExtensions.Fullpath(Application.StartupPath, "Levels.xml"));
     Context.ImportSkills();
     Context.ImportLanguages();
     Context.ImportSpells();
     Context.ImportItems();
     Context.ImportBackgrounds();
     Context.ImportRaces();
     Context.ImportSubRaces();
     Context.ImportStandaloneFeatures();
     Context.ImportConditions();
     Context.ImportMagic();
     Context.ImportClasses(true);
     Context.ImportSubClasses(true);
 }