Beispiel #1
0
            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.");
                }
            }
Beispiel #2
0
        /// <summary>
        /// WARNING: This re-generates code-files to comply with the current client-version
        /// </summary>
        public static void DoUpdate()
        {
            ExtractUpdateFields();
            ExtractSpellFailures();

            WCellEnumWriter.WriteAllEnums();
            WriteWCellInfo();
        }
Beispiel #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();
        }