Parse() public method

public Parse ( ) : void
return void
Esempio n. 1
0
        private void bwMaps_DoWork(object sender, DoWorkEventArgs e)
        {
            DefineParser WorldMapHeaderData = new DefineParser();

            if (!WorldMapHeaderData.ReadDefines(@Config.PathWorldmapHeader))
            {
                Utils.HandleParseError(WorldMapHeaderData.Error, @Config.PathWorldmapHeader);
            }

            worldmap = new WorldMap(Config.PathWorldMap, Config.PathWorldMapCompiled, new WorldMapFormat(WorldMapHeaderData));
            worldmap.Parse();

            //worldmap = new WorldMap("worldmap_sdk.fowm", "worldmap_sdk.focwm", new SDKWorldMapFormat(WorldMapHeaderData));
            bwMaps.ReportProgress(52);
            this.BeginInvoke((MethodInvoker) delegate
            {
                pctWorldMap.Refresh();
                locationEditorToolStripMenuItem.Enabled = true;
                mapdataEditorToolStripMenuItem.Enabled  = true;
            });
            Utils.Log("Loaded maps and location data.");
            bwMaps.ReportProgress(100);
        }
Esempio n. 2
0
        private void bwMaps_DoWork(object sender, DoWorkEventArgs e)
        {
            DefineParser WorldMapHeaderData = new DefineParser();
                if (!WorldMapHeaderData.ReadDefines(@Config.PathWorldmapHeader))
                    Utils.HandleParseError(WorldMapHeaderData.Error, @Config.PathWorldmapHeader);

                worldmap = new WorldMap(Config.PathWorldMap, Config.PathWorldMapCompiled, new WorldMapFormat(WorldMapHeaderData));
                worldmap.Parse();

                //worldmap = new WorldMap("worldmap_sdk.fowm", "worldmap_sdk.focwm", new SDKWorldMapFormat(WorldMapHeaderData));
                bwMaps.ReportProgress(52);
                this.BeginInvoke((MethodInvoker)delegate
                {
                    pctWorldMap.Refresh();
                    locationEditorToolStripMenuItem.Enabled = true;
                    mapdataEditorToolStripMenuItem.Enabled = true;
                });
                Utils.Log("Loaded maps and location data.");
                bwMaps.ReportProgress(100);
        }