コード例 #1
0
ファイル: Decompiler.cs プロジェクト: amorgun/decomp-cli
 private static void InitializeModuleData()
 {
     Status              = $"Initializing scripts.txt";
     Common.Procedures   = Scripts.Initialize();
     Status              = "Initializing quick_strings.txt";
     Common.QuickStrings = QuickStrings.Initialize();
     Status              = "Initializing strings.txt";
     Common.Strings      = Strings.Initialize();
     Status              = "Initializing item_kinds1.txt";
     Common.Items        = Text.GetFirstStringFromFile(Common.InputPath + "/item_kinds1.txt") == "itemsfile version 2"
         ? Vanilla.Items.GetIdFromFile(Common.InputPath + "/item_kinds1.txt") : Items.Initialize();
     Status        = "Initializing troops.txt";
     Common.Troops = Text.GetFirstStringFromFile(Common.InputPath + "/troops.txt") == "troopsfile version 1"
         ? Vanilla.Troops.GetIdFromFile(Common.InputPath + "/troops.txt") : (Common.SelectedMode == Mode.Caribbean ?
                                                                             Caribbean.Troops.Initialize() : Troops.Initialize());
     Status                  = "Initializing factions.txt";
     Common.Factions         = Factions.Initialize();
     Status                  = "Initializing quests.txt";
     Common.Quests           = Quests.Initialize();
     Status                  = "Initializing party_templates.txt";
     Common.PTemps           = PartyTemplates.Initialize();
     Status                  = "Initializing parties.txt";
     Common.Parties          = Parties.Initialize();
     Status                  = "Initializing menus.txt";
     Common.Menus            = Menus.Initialize();
     Status                  = "Initializing sounds.txt";
     Common.Sounds           = Sounds.Initialize();
     Status                  = "Initializing skills.txt";
     Common.Skills           = Skills.Initialize();
     Status                  = "Initializing meshes.txt";
     Common.Meshes           = Meshes.Initialize();
     Status                  = "Initializing variables.txt";
     Common.Variables        = Scripts.InitializeVariables();
     Status                  = "Initializing dialog_states.txt";
     Common.DialogStates     = Dialogs.Initialize();
     Status                  = "Initializing scenes.txt";
     Common.Scenes           = Scenes.Initialize();
     Status                  = "Initializing mission_templates.txt";
     Common.MissionTemplates = MissionTemplates.Initialize();
     Status                  = "Initializing particle_systems.txt";
     Common.ParticleSystems  = ParticleSystems.Initialize();
     Status                  = "Initializing scene_props.txt";
     Common.SceneProps       = SceneProps.Initialize();
     Status                  = "Initializing map_icons.txt";
     Common.MapIcons         = MapIcons.Initialize();
     Status                  = "Initializing presentations.txt";
     Common.Presentations    = Presentations.Initialize();
     Status                  = "Initializing tableau_materials.txt";
     Common.Tableaus         = TableauMaterials.Initialize();
     Status                  = "Initializing actions.txt";
     Common.Animations       = Common.IsVanillaMode ? Vanilla.Animations.GetIdFromFile(Common.InputPath + "/actions.txt") : Animations.Initialize();
     Status                  = "Initializing music.txt";
     Common.Music            = Music.Initialize();
     Status                  = "Initializing skins.txt";
     Common.Skins            = Common.SelectedMode == Mode.Caribbean ?
                               Caribbean.Skins.Initialize() : Skins.Initialize();
     Status           = "Initializing info_pages.txt";
     Common.InfoPages = InfoPages.Initialize();
     Status           = "Initializing finished";
 }