コード例 #1
0
ファイル: UpdateCommand.cs プロジェクト: NecroSharper/WCell
            public override void Process(CmdTrigger <ToolCmdArgs> trigger)
            {
                var mod = trigger.Text.NextModifiers();

                if (mod == "e")
                {
                    WCellEnumWriter.WriteAllEnums();
                }
                else if (!mod.Contains("f") && VersionUpdater.WoWFile.Version <= WCellInfo.RequiredVersion)
                {
                    trigger.Reply("WCell does already have the same or higher version as the given client: " +
                                  WCellInfo.RequiredVersion);
                    trigger.Reply("Use the -f switch (force) to update again.");
                }
                else
                {
                    var dumpDBCs = !trigger.Text.HasNext || trigger.Text.NextBool();
                    trigger.Reply("Updating changes for client: {0} ...", VersionUpdater.WoWFile);
                    if (dumpDBCs)
                    {
                        trigger.Reply("Dumping DBC files...");
                        DBCTool.Dump(ToolConfig.WoWDir, true, false);
                    }
                    VersionUpdater.DoUpdate();
                    trigger.Reply("Done.");
                }
            }
コード例 #2
0
ファイル: VersionUpdater.cs プロジェクト: NecroSharper/WCell
        /// <summary>
        /// WARNING: This re-generates code-files to comply with the current client-version
        /// </summary>
        public static void DoUpdate()
        {
            ExtractUpdateFields();
            ExtractSpellFailures();

            WCellEnumWriter.WriteAllEnums();
            WriteWCellInfo();
        }
コード例 #3
0
        /// <summary>
        /// WARNING: This re-generates code-files to comply with the current client-version
        /// </summary>
        public static void DoUpdate()
        {
            RealmServerConfiguration.DBCFolderName = "dbc" + WoWFile.Version.BasicString;
            WriteWCellInfo();
            ExtractUpdateFields();
            ExtractSpellFailures();

            WCellEnumWriter.WriteAllEnums();
            SpellLineWriter.WriteSpellLines();

            Instances.WriteInstanceStubs();
        }