public void Save(string fileName)
 {
     var resource = new ResourceFile_GTA5_pc<DrawableDictionary_GTA5_pc>();
     resource.ResourceData = drawableDictionary;
     resource.Version = 165;
     resource.Save(fileName);
 }
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc<FragType_GTA5_pc>();
            resource.Load(fileName);

            fragType = resource.ResourceData;
        }
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc<DrawableDictionary_GTA5_pc>();
            resource.Load(fileName);

            drawableDictionary = resource.ResourceData;
        }
 public void Save(Stream stream)
 {
     var resource = new ResourceFile_GTA5_pc<DrawableDictionary_GTA5_pc>();
     resource.ResourceData = drawableDictionary;
     resource.Version = 165;
     resource.Save(stream);
 }
 public void Save(Stream stream)
 {
     var resource = new ResourceFile_GTA5_pc<ParticleFile_GTA5_pc>();
     resource.ResourceData = particles;
     resource.Version = 68;
     resource.Save(stream);
 }
        public void Load(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc<DrawableDictionary_GTA5_pc>();
            resource.Load(stream);

            drawableDictionary = resource.ResourceData;
        }
 public void Save(string fileName)
 {
     var resource = new ResourceFile_GTA5_pc<ParticleFile_GTA5_pc>();
     resource.ResourceData = particles;
     resource.Version = 68;
     resource.Save(fileName);
 }
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc<ParticleFile_GTA5_pc>();
            resource.Load(fileName);

            particles = resource.ResourceData;
        }
        public void Save(Stream stream)
        {
            var w = new FragTypeWrapper_GTA5_pc(fragType);
            w.UpdateClass();

            var resource = new ResourceFile_GTA5_pc<FragType_GTA5_pc>();
            resource.ResourceData = fragType;
            resource.Version = 162;
            resource.Save(stream);
        }
        public void Load(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc<FragType_GTA5_pc>();
            resource.Load(stream);

            if (resource.Version != 162)
                throw new Exception("version error");

            fragType = resource.ResourceData;
        }
        public void Load(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc<ParticleFile_GTA5_pc>();
            resource.Load(stream);

            if (resource.Version != 68)
                throw new Exception("version error");

            particles = resource.ResourceData;
        }
        public void Load(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc<TextureDictionary_GTA5_pc>();
            resource.Load(stream);

            if (resource.Version != 13)
                throw new Exception("version error");

            textureDictionary = resource.ResourceData;
        }
        /// <summary>
        /// Saves the texture dictionary to a file.
        /// </summary>
        public void Save(string fileName)
        {
            var w = new TextureDictionaryWrapper_GTA5_pc(textureDictionary);
            w.UpdateClass();

            var resource = new ResourceFile_GTA5_pc<TextureDictionary_GTA5_pc>();
            resource.ResourceData = textureDictionary;
            resource.Version = 13;
            resource.Save(fileName);
        }