Example #1
0
        public ModuleInfo(string MnBPath, string module, string language)
        {
            F_Language       = new F_Language(MnBPath, module, language);
            F_Animations     = F_Animations.LoadFromFile(this, MnBPath, module);
            F_MapIcons       = F_MapIcons.LoadFromFile(this, MnBPath, module);
            F_Presentations  = F_Presentations.LoadFromFile(this, MnBPath, module);
            F_Tableau_Mats   = F_Tableau_Mats.LoadFromFile(this, MnBPath, module);
            F_Skills         = F_Skills.LoadFromFile(this, MnBPath, module);
            F_Meshes         = F_Meshes.LoadFromFile(this, MnBPath, module);
            F_Strings        = F_Strings.LoadFromFile(this, MnBPath, module);
            F_Variables      = F_Variables.LoadFromFile(this, MnBPath, module);
            F_QuickStrings   = F_QuickStrings.LoadFromFile(this, MnBPath, module);
            F_Factions       = F_Factions.LoadFromFile(this, MnBPath, module);
            F_Scripts        = F_Scripts.LoadFromFile(this, MnBPath, module);
            F_SimpleTriggers = F_SimpleTriggers.LoadFromFile(this, MnBPath, module);


            F_Items             = F_Items.LoadFromFile(this, MnBPath, module);
            F_Menus             = F_Menus.LoadFromFile(this, MnBPath, module);
            F_Parties           = F_Parties.LoadFromFile(this, MnBPath, module);
            F_Troops            = F_Troops.LoadFromFile(this, MnBPath, module);
            F_Sounds            = F_Sounds.LoadFromFile(this, MnBPath, module);
            F_Quests            = F_Quests.LoadFromFile(this, MnBPath, module);
            F_Party_Templates   = F_Party_Templates.LoadFromFile(this, MnBPath, module);
            F_Scenes            = F_Scenes.LoadFromFile(this, MnBPath, module);
            F_Mission_Templates = F_Mission_Templates.LoadFromFile(this, MnBPath, module);
            F_Particle_Systems  = F_Particle_Systems.LoadFromFile(this, MnBPath, module);
            F_Scene_Props       = F_Scene_Props.LoadFromFile(this, MnBPath, module);
        }
        public static F_Quests LoadFromFile(ModuleInfo minfo, string MnBPath, string module)
        {
            F_Quests obj = new F_Quests();

            obj.Module = minfo;
            StreamReader reader = new StreamReader(File.Open(MnBPath + "\\modules\\" + module + "\\quests.txt", FileMode.Open));

            obj.FromStream(reader);

            reader.Close();
            return(obj);
        }