Ejemplo n.º 1
0
 public void Load(string fileName)
 {
     if (fileName.EndsWith(".ytd"))
     {
         this.textureDictionaryFile = new TextureDictionaryFileWrapper_GTA5_pc();
         this.textureDictionaryFile.Load(fileName);
         this.drawableDictionaryFile = null;
         this.drawableFile           = null;
         this.fragmentFile           = null;
         this.particlesFile          = null;
         this.fileName = fileName;
     }
     else if (fileName.EndsWith(".ydd"))
     {
         this.textureDictionaryFile  = null;
         this.drawableDictionaryFile = new DrawableDictionaryFileWrapper_GTA5_pc();
         this.drawableDictionaryFile.Load(fileName);
         this.drawableFile  = null;
         this.fragmentFile  = null;
         this.particlesFile = null;
         this.fileName      = fileName;
     }
     else if (fileName.EndsWith(".ydr"))
     {
         this.textureDictionaryFile  = null;
         this.drawableDictionaryFile = null;
         this.drawableFile           = new DrawableFileWrapper_GTA5_pc();
         this.drawableFile.Load(fileName);
         this.fragmentFile  = null;
         this.particlesFile = null;
         this.fileName      = fileName;
     }
     else if (fileName.EndsWith(".yft"))
     {
         this.textureDictionaryFile  = null;
         this.drawableDictionaryFile = null;
         this.drawableFile           = null;
         this.fragmentFile           = new FragmentFileWrapper_GTA5_pc();
         this.fragmentFile.Load(fileName);
         this.particlesFile = null;
         this.fileName      = fileName;
     }
     else if (fileName.EndsWith(".ypt"))
     {
         this.textureDictionaryFile  = null;
         this.drawableDictionaryFile = null;
         this.drawableFile           = null;
         this.fragmentFile           = null;
         this.particlesFile          = new ParticlesFileWrapper_GTA5_pc();
         this.particlesFile.Load(fileName);
         this.fileName = fileName;
     }
     else
     {
         throw new Exception("Unsupported file type.");
     }
 }
Ejemplo n.º 2
0
 public void New()
 {
     this.textureDictionaryFile  = new TextureDictionaryFileWrapper_GTA5_pc();
     this.drawableDictionaryFile = null;
     this.drawableFile           = null;
     this.fragmentFile           = null;
     this.particlesFile          = null;
     this.fileName = null;
 }
Ejemplo n.º 3
0
 public void New()
 {
     this.textureDictionaryFile = new TextureDictionaryFileWrapper_GTA5_pc();
     this.drawableDictionaryFile = null;
     this.drawableFile = null;
     this.fragmentFile = null;
     this.particlesFile = null;
     this.fileName = null;
 }
Ejemplo n.º 4
0
 public void Load(string fileName)
 {
     if (fileName.EndsWith(".ytd"))
     {
         this.textureDictionaryFile = new TextureDictionaryFileWrapper_GTA5_pc();
         this.textureDictionaryFile.Load(fileName);
         this.drawableDictionaryFile = null;
         this.drawableFile = null;
         this.fragmentFile = null;
         this.particlesFile = null;
         this.fileName = fileName;
     }
     else if (fileName.EndsWith(".ydd"))
     {
         this.textureDictionaryFile = null;
         this.drawableDictionaryFile = new DrawableDictionaryFileWrapper_GTA5_pc();
         this.drawableDictionaryFile.Load(fileName);
         this.drawableFile = null;
         this.fragmentFile = null;
         this.particlesFile = null;
         this.fileName = fileName;
     }
     else if (fileName.EndsWith(".ydr"))
     {
         this.textureDictionaryFile = null;
         this.drawableDictionaryFile = null;
         this.drawableFile = new DrawableFileWrapper_GTA5_pc();
         this.drawableFile.Load(fileName);
         this.fragmentFile = null;
         this.particlesFile = null;
         this.fileName = fileName;
     }
     else if (fileName.EndsWith(".yft"))
     {
         this.textureDictionaryFile = null;
         this.drawableDictionaryFile = null;
         this.drawableFile = null;
         this.fragmentFile = new FragmentFileWrapper_GTA5_pc();
         this.fragmentFile.Load(fileName);
         this.particlesFile = null;
         this.fileName = fileName;
     }
     else if (fileName.EndsWith(".ypt"))
     {
         this.textureDictionaryFile = null;
         this.drawableDictionaryFile = null;
         this.drawableFile = null;
         this.fragmentFile = null;
         this.particlesFile = new ParticlesFileWrapper_GTA5_pc();
         this.particlesFile.Load(fileName);
         this.fileName = fileName;
     }
     else
     {
         throw new Exception("Unsupported file type.");
     }
 }