예제 #1
0
 /// <summary>
 /// Creates a new Mod using TXD, DFF and COL instances
 /// </summary>
 /// <param name="txd"></param>
 /// <param name="dff"></param>
 /// <param name="col"></param>
 public Mod(Txd txd = null, Dff dff = null, Col col = null)
 {
     this.txd           = txd;
     this.dff           = dff;
     this.col           = col;
     this.state         = DownloadState.Default;
     this.modelsToApply = new List <Tuple <int, bool> >();
 }
예제 #2
0
 public void Restore(int model)
 {
     if (this.dff != null)
     {
         Dff.Restore(model);
     }
     if (this.col != null)
     {
         Col.Restore(model);
     }
 }
예제 #3
0
 /// <summary>
 /// Creates a new mod using TXD, DFF and COL filepaths
 /// </summary>
 /// <param name="txdFilepath"></param>
 /// <param name="dffFilepath"></param>
 /// <param name="colFilepath"></param>
 public Mod(string txdFilepath, string dffFilepath = null, string colFilepath = null)
 {
     this.txd = new Txd(txdFilepath);
     if (dffFilepath != null)
     {
         this.dff = new Dff(dffFilepath);
     }
     if (colFilepath != null)
     {
         this.col = new Col(colFilepath);
     }
     this.state         = DownloadState.Default;
     this.modelsToApply = new List <int>();
 }