Пример #1
0
        public IMetaValue Read(Stream fileStream)
        {
            var resource = new ResourceFile_GTA5_pc <Meta_GTA5_pc>();

            resource.Load(fileStream);
            return(Parse(resource.ResourceData));
        }
Пример #2
0
 private void Convert()
 {
     if (arguments[0].EndsWith(".ymap.xml") ||
         arguments[0].EndsWith(".ytyp.xml") ||
         arguments[0].EndsWith(".ymt.xml"))
     {
         ConvertXmlToResource();
     }
     else if (arguments[0].EndsWith(".ymap") ||
              arguments[0].EndsWith(".ytyp") ||
              arguments[0].EndsWith(".ymt"))
     {
         if (ResourceFile_GTA5_pc.IsResourceFile(arguments[0]))
         {
             ConvertResourceToXml();
         }
         else if (PsoFile.IsPSO(arguments[0]))
         {
             ConvertPsoToXml();
         }
         else
         {
             ConvertRbfToXml();
         }
     }
     else if (arguments[0].EndsWith(".ymf"))
     {
         ConvertPsoToXml();
     }
     else
     {
         Console.WriteLine("No supported file name specified.");
         Console.ReadLine();
     }
 }
        public void Save(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <CharacterCloth> >();

            resource.ResourceData = clothDictionary;
            resource.Version      = 8;
            resource.Save(fileName);
        }
        public void Save(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <ParticleEffectsList>();

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

            resource.Load(fileName);

            particles = resource.ResourceData;
        }
Пример #6
0
        public void Save(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <Drawable_GTA5_pc>();

            resource.ResourceData = drawable;
            resource.Version      = 165;
            resource.Save(stream);
        }
Пример #7
0
        public void Load(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <Drawable_GTA5_pc>();

            resource.Load(stream);

            drawable = resource.ResourceData;
        }
        public void Save(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Bound> >();

            resource.ResourceData = boundDictionary;
            resource.Version      = 43;
            resource.Save(fileName);
        }
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Bound> >();

            resource.Load(fileName);

            boundDictionary = resource.ResourceData;
        }
Пример #10
0
        public void Save(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <Bound>();

            resource.ResourceData = bound;
            resource.Version      = 43;
            resource.Save(stream);
        }
Пример #11
0
        /// <summary>
        /// Loads the bound from a file.
        /// </summary>
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <Bound>();

            resource.Load(fileName);

            bound = resource.ResourceData;
        }
Пример #12
0
        public void Load(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <Bound>();

            resource.Load(stream);

            bound = resource.ResourceData;
        }
        public void Save(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <Navigation>();

            resource.ResourceData = navigation;
            resource.Version      = 2;
            resource.Save(fileName);
        }
        public void Save(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <Navigation>();

            resource.ResourceData = navigation;
            resource.Version      = 2;
            resource.Save(stream);
        }
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <Navigation>();

            resource.Load(fileName);

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

            resource.Load(stream);

            navigation = resource.ResourceData;
        }
        public void Load(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Bound> >();

            resource.Load(stream);

            boundDictionary = resource.ResourceData;
        }
Пример #18
0
        /// <summary>
        /// Saves the bound to a file.
        /// </summary>
        public void Save(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <Bound>();

            resource.ResourceData = bound;
            resource.Version      = 43;
            resource.Save(fileName);
        }
        public void Save(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <Bound> >();

            resource.ResourceData = boundDictionary;
            resource.Version      = 43;
            resource.Save(stream);
        }
        public void Save(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <GtaDrawableDictionary>();

            resource.ResourceData = drawableDictionary;
            resource.Version      = 165;
            resource.Save(stream);
        }
        public void Load(Stream stream)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <GtaDrawable> >();

            resource.Load(stream);

            drawableDictionary = resource.ResourceData;
        }
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <GtaDrawable> >();

            resource.Load(fileName);

            drawableDictionary = resource.ResourceData;
        }
Пример #23
0
        /// <summary>
        /// Loads the texture dictionary from a file.
        /// </summary>
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <Drawable_GTA5_pc>();

            resource.Load(fileName);

            drawable = resource.ResourceData;
        }
        public void Save(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <GtaDrawable> >();

            resource.ResourceData = drawableDictionary;
            resource.Version      = 165;
            resource.Save(fileName);
        }
Пример #25
0
        /// <summary>
        /// Saves the texture dictionary to a file.
        /// </summary>
        public void Save(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <Drawable_GTA5_pc>();

            resource.ResourceData = drawable;
            resource.Version      = 165;
            resource.Save(fileName);
        }
Пример #26
0
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <FragType_GTA5_pc>();

            resource.Load(fileName);

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

            resource.ResourceData = particles;
            resource.Version      = 68;
            resource.Save(fileName);
        }
Пример #28
0
        public void Write(IMetaValue value, Stream fileStream)
        {
            var resource = new ResourceFile_GTA5_pc <Meta_GTA5_pc>();

            resource.Version      = 2;
            resource.ResourceData = Build(value);
            resource.Save(fileStream);
        }
Пример #29
0
        /// <summary>
        /// Loads the texture dictionary from a file.
        /// </summary>
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <TextureDictionary>();

            resource.Load(fileName);

            textureDictionary = resource.ResourceData;
        }
        public void Load(string fileName)
        {
            var resource = new ResourceFile_GTA5_pc <PgDictionary64 <CharacterCloth> >();

            resource.Load(fileName);

            clothDictionary = resource.ResourceData;
        }