示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="dat"/> class.
 /// </summary>
 /// <param name="l">The l.</param>
 /// <param name="mf">The mf.</param>
 /// <param name="ffxIpath">The FFX ipath.</param>
 public dat(Log l, HomeView mf, string ffxIpath)
 {
     try
     {
         Log         = l;
         Main        = mf;
         InstallPath = ffxIpath;
         RomPath     = new RomPath(ffxIpath, l, mf);
         Dms         = new d_ms(l, mf, RomPath);
         Entity      = new Entity();
         Zones       = new List <Zones>();
         _DatTypes   = new List <Zones>();
     }
     catch (Exception ex)
     {
         Log.LogFile(ex.ToString(), nameof(dat));
         Log.AddDebugText(Main.RtbDebug, $@"{ex} > {nameof(dat)}");
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ParseZoneModelDat"/> class.
 /// </summary>
 /// <param name="l">The l.</param>
 /// <param name="mf">The mf.</param>
 /// <param name="zid">The zid.</param>
 /// <param name="zname">The zname.</param>
 /// <param name="ffxIpath">The FFX ipath.</param>
 /// <param name="dumpSRinfo">if set to <c>true</c> [dump s rinfo].</param>
 public ParseZoneModelDat(Log l, HomeView mf, int zid, string zname, string ffxIpath, bool dumpSRinfo)
 {
     try
     {
         Log         = l;
         Main        = mf;
         ZoneId      = zid;
         FileName    = zname;
         InstallPath = ffxIpath;
         DumpSRtoXml = dumpSRinfo;
         RomPath     = new RomPath(ffxIpath, l, mf);
         Mzb         = new Mzb(l, mf);
         Mmb         = new Mmb(l, mf);
         Rid         = new Rid(l, mf, ffxIpath, RomPath);
         Chunks      = new List <DatChunk>();
     }
     catch (Exception ex)
     {
         Log.LogFile(ex.ToString(), nameof(ParseZoneModelDat));
         Log.AddDebugText(Main.RtbDebug, $@"{ex} > {nameof(ParseZoneModelDat)}");
     }
 }