public WorldMap(string WorldMapFileName, string CompiledWorldMapFilename, IWorldMapFormat WMFormat) { FOCommon.Cache.Cache.Load(".\\Cache.dat"); this.WMFormat = WMFormat; this.FileName = WorldMapFileName; this.CompiledFileName = CompiledWorldMapFilename; this.GMParser = new FOGMParser(Config.PathGm); this.GWParser = new GWParser(Config.PathGw); this.FOGameParser = new FOGAMEParser(Config.PathGame); this.DialogListParser = new DialogListParser(Config.PathDialogsDir + "/dialogs.lst"); this.FODLGParser = new FOCommon.Parsers.MSGParser(Config.PathDlg); this.FOOBJParser = new FOCommon.Parsers.MSGParser(Config.PathTextDir + " /FOOBJ.MSG"); this.GroupParser = new EncounterGroupParser(Config.PathGroups, FOGameParser, DialogListParser, GMParser, FODLGParser); this.MapParser = new MapParser(GMParser, Config.PathMapsDir, Config.PathCity); this.ScriptListParser = new ScriptListParser(Config.PathScriptsDir + "/scripts.cfg"); this.DefineParser = new DefineParser(); // worldmap_h and _maps this.ZoneDisplayFont = new Font(FontFamily.GenericMonospace, 10.0f); this.LocParser = new LocationParser(Config.PathCity, MapParser, GWParser, GMParser); this.MapObjects = new List<IWorldMapDrawable>(); }
public WorldMap(string WorldMapFileName, string CompiledWorldMapFilename, IWorldMapFormat WMFormat) { FOCommon.Cache.Cache.Load(".\\Cache.dat"); this.WMFormat = WMFormat; this.FileName = WorldMapFileName; this.CompiledFileName = CompiledWorldMapFilename; this.GMParser = new FOGMParser(Config.PathGm); this.GWParser = new GWParser(Config.PathGw); this.FOGameParser = new FOGAMEParser(Config.PathGame); this.DialogListParser = new DialogListParser(Config.PathDialogsDir + "/dialogs.cfg"); this.FODLGParser = new FOCommon.Parsers.MSGParser(Config.PathDlg); this.FOOBJParser = new FOCommon.Parsers.MSGParser(Config.PathTextDir + " /FOOBJ.MSG"); this.GroupParser = new EncounterGroupParser(Config.PathGroups, FOGameParser, DialogListParser, GMParser, FODLGParser); this.MapParser = new MapParser(GMParser, Config.PathMapsDir, Config.PathCity); this.ScriptListParser = new ScriptListParser(Config.PathScriptsDir + "/scripts.cfg"); this.DefineParser = new DefineParser(); // worldmap_h and _maps this.ZoneDisplayFont = new Font(FontFamily.GenericMonospace, 10.0f); this.LocParser = new LocationParser(Config.PathCity, MapParser, GWParser, GMParser); this.MapObjects = new List <IWorldMapDrawable>(); }