コード例 #1
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT         = reader.ReadUInt32();
            this.Unknown_4h  = reader.ReadUInt32();
            this.Unknown_8h  = reader.ReadUInt32();
            this.Unknown_Ch  = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.p1          = reader.ReadUInt64();
            this.c1a         = reader.ReadUInt16();
            this.c1b         = reader.ReadUInt16();
            this.Unknown_24h = reader.ReadUInt32();
            this.p2          = reader.ReadUInt64();
            this.c2a         = reader.ReadUInt16();
            this.c2b         = reader.ReadUInt16();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.p1_data = reader.ReadBlockAt <ResourceSimpleArray <ulong_r> >(
                this.p1, // offset
                this.c1a
                );
            this.p2_data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >(
                this.p2, // offset
                this.c2a
                );
        }
コード例 #2
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.p1 = reader.ReadUInt64();
            this.c1a = reader.ReadUInt16();
            this.c1b = reader.ReadUInt16();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();
            this.Unknown_40h = reader.ReadUInt32();
            this.Unknown_44h = reader.ReadUInt32();
            this.Unknown_48h = reader.ReadUInt32();
            this.Unknown_4Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_P_001>>(
                this.p1, // offset
                this.c1a
            );
        }
コード例 #3
0
ファイル: Filter_GTA5_pc.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.p1 = reader.ReadUInt64();
            this.c1a = reader.ReadUInt16();
            this.c1b = reader.ReadUInt16();
            this.Unknown_24h = reader.ReadUInt32();
            this.p2 = reader.ReadUInt64();
            this.c2a = reader.ReadUInt16();
            this.c2b = reader.ReadUInt16();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.p1_data = reader.ReadBlockAt<ResourceSimpleArray<ulong_r>>(
                this.p1, // offset
                this.c1a
            );
            this.p2_data = reader.ReadBlockAt<ResourceSimpleArray<uint_r>>(
                this.p2, // offset
                this.c2a
            );
        }
コード例 #4
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT                = reader.ReadUInt32();
            this.Unknown_4h         = reader.ReadUInt32();
            this.Unknown_8h         = reader.ReadUInt32();
            this.Unknown_Ch         = reader.ReadUInt32();
            this.Unknown_10h        = reader.ReadUInt32();
            this.Unknown_14h        = reader.ReadUInt32();
            this.Unknown_18h        = reader.ReadUInt32();
            this.Unknown_1Ch        = reader.ReadUInt32();
            this.HashesPointer      = reader.ReadUInt64();
            this.HashesCount1       = reader.ReadUInt16();
            this.HashesCount2       = reader.ReadUInt16();
            this.Unknown_2Ch        = reader.ReadUInt32();
            this.EffectRulesPointer = reader.ReadUInt64();
            this.EffectRulesCount1  = reader.ReadUInt16();
            this.EffectRulesCount2  = reader.ReadUInt16();
            this.Unknown_3Ch        = reader.ReadUInt32();

            // read reference data
            this.Hashes = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >(
                this.HashesPointer, // offset
                this.HashesCount1
                );
            this.EffectRules = reader.ReadBlockAt <ResourcePointerArray64 <EffectRule_GTA5_pc> >(
                this.EffectRulesPointer, // offset
                this.EffectRulesCount1
                );
        }
コード例 #5
0
ファイル: Unknown_D_002.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Unknown_10h_Pointer = reader.ReadUInt64();
            this.Unknown_18h_Pointer = reader.ReadUInt64();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();
            this.Count0 = reader.ReadUInt16();
            this.Count1 = reader.ReadUInt16();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.Unknown_10h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_D_004>>(
                this.Unknown_10h_Pointer, // offset
                this.Count0
            );
            this.Unknown_18h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_D_003>>(
                this.Unknown_18h_Pointer, // offset
                this.Count1
            );
        }
コード例 #6
0
ファイル: Unknown_P_009.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.p1 = reader.ReadUInt64();
            this.c1a = reader.ReadUInt16();
            this.c1b = reader.ReadUInt16();
            this.Unknown_Ch = reader.ReadUInt32();
            this.p2 = reader.ReadUInt64();
            this.c2a = reader.ReadUInt16();
            this.c2b = reader.ReadUInt16();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.p3 = reader.ReadUInt64();
            this.c3a = reader.ReadUInt16();
            this.c3b = reader.ReadUInt16();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_P_012>>(
                this.p1, // offset
                this.c1a
            );
            this.p2data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_P_013>>(
                this.p2, // offset
                this.c2a
            );
            this.p3data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_P_017>>(
                this.p3, // offset
                this.c3a
            );
        }
コード例 #7
0
ファイル: Joints.cs プロジェクト: snakewiz/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.RotationLimitsPointer    = reader.ReadUInt64();
            this.TranslationLimitsPointer = reader.ReadUInt64();
            this.Unknown_20h            = reader.ReadUInt32();
            this.Unknown_24h            = reader.ReadUInt32();
            this.Unknown_28h            = reader.ReadUInt32();
            this.Unknown_2Ch            = reader.ReadUInt32();
            this.RotationLimitsCount    = reader.ReadUInt16();
            this.TranslationLimitsCount = reader.ReadUInt16();
            this.Unknown_34h            = reader.ReadUInt16();
            this.Unknown_36h            = reader.ReadUInt16();
            this.Unknown_38h            = reader.ReadUInt32();
            this.Unknown_3Ch            = reader.ReadUInt32();

            // read reference data
            this.RotationLimits = reader.ReadBlockAt <ResourceSimpleArray <JointRotationLimit> >(
                this.RotationLimitsPointer, // offset
                this.RotationLimitsCount
                );
            this.TranslationLimits = reader.ReadBlockAt <ResourceSimpleArray <JointTranslationLimit> >(
                this.TranslationLimitsPointer, // offset
                this.TranslationLimitsCount
                );
        }
コード例 #8
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.NamePointer = reader.ReadUInt64();
            this.LightAttributesPointer = reader.ReadUInt64();
            this.LightAttributesCount1 = reader.ReadUInt16();
            this.LightAttributesCount2 = reader.ReadUInt16();
            this.Unknown_BCh = reader.ReadUInt32();
            this.Unknown_C0h = reader.ReadUInt32();
            this.Unknown_C4h = reader.ReadUInt32();
            this.BoundPointer = reader.ReadUInt64();

            // read reference data
            this.Name = reader.ReadBlockAt<string_r>(
                this.NamePointer // offset
            );
            this.LightAttributes = reader.ReadBlockAt<ResourceSimpleArray<LightAttributes_GTA5_pc>>(
                this.LightAttributesPointer, // offset
                this.LightAttributesCount1
            );
            this.Bound = reader.ReadBlockAt<Bound_GTA5_pc>(
                this.BoundPointer // offset
            );
        }
コード例 #9
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_10h      = reader.ReadUInt32();
            this.Unknown_14h      = reader.ReadUInt32();
            this.Unknown_18h      = reader.ReadUInt32();
            this.Unknown_1Ch      = reader.ReadUInt32();
            this.HashesPointer    = reader.ReadUInt64();
            this.HashesCount1     = reader.ReadUInt16();
            this.HashesCount2     = reader.ReadUInt16();
            this.Unknown_2Ch      = reader.ReadUInt32();
            this.DrawablesPointer = reader.ReadUInt64();
            this.DrawablesCount1  = reader.ReadUInt16();
            this.DrawablesCount2  = reader.ReadUInt16();
            this.Unknown_3Ch      = reader.ReadUInt32();

            // read reference data
            this.Hashes = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >(
                this.HashesPointer, // offset
                this.HashesCount1
                );
            this.Drawables = reader.ReadBlockAt <ResourcePointerArray64 <GtaDrawable> >(
                this.DrawablesPointer, // offset
                this.DrawablesCount1
                );
        }
コード例 #10
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Unknown_0h  = reader.ReadUInt32();
            this.Unknown_4h  = reader.ReadUInt32();
            this.Unknown_8h  = reader.ReadUInt32();
            this.Unknown_Ch  = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();
            this.Unknown_30h = reader.ReadUInt32();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();
            this.p12         = reader.ReadUInt64();
            this.c12a        = reader.ReadUInt16();
            this.c12b        = reader.ReadUInt16();
            this.Unknown_4Ch = reader.ReadUInt32();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadUInt32();

            // read reference data
            this.p12data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >(
                this.p12, // offset
                this.c12a
                );
        }
コード例 #11
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.GeometriesPointer = reader.ReadUInt64();
            this.GeometriesCount1 = reader.ReadUInt16();
            this.GeometriesCount2 = reader.ReadUInt16();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h_Pointer = reader.ReadUInt64();
            this.ShaderMappingPointer = reader.ReadUInt64();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();

            // read reference data
            this.Geometries = reader.ReadBlockAt<ResourcePointerArray64<DrawableGeometry_GTA5_pc>>(
                this.GeometriesPointer, // offset
                this.GeometriesCount1
            );
            this.Unknown_18h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_AABB>>(
                this.Unknown_18h_Pointer, // offset
                this.GeometriesCount1 > 1 ? this.GeometriesCount1 + 1 : this.GeometriesCount1
            );
            this.ShaderMapping = reader.ReadBlockAt<ResourceSimpleArray<ushort_r>>(
                this.ShaderMappingPointer, // offset
                this.GeometriesCount1
            );
        }
コード例 #12
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.p1          = reader.ReadUInt64();
            this.c1a         = reader.ReadUInt16();
            this.c1b         = reader.ReadUInt16();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();
            this.Unknown_40h = reader.ReadUInt32();
            this.Unknown_44h = reader.ReadUInt32();
            this.Unknown_48h = reader.ReadUInt32();
            this.Unknown_4Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_001> >(
                this.p1, // offset
                this.c1a
                );
        }
コード例 #13
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.NodesPointer      = reader.ReadUInt64();
            this.NodesCount        = reader.ReadUInt32();
            this.NodesCapacity     = reader.ReadUInt32();
            this.Unknown_10h       = reader.ReadUInt32();
            this.Unknown_14h       = reader.ReadUInt32();
            this.Unknown_18h       = reader.ReadUInt32();
            this.Unknown_1Ch       = reader.ReadUInt32();
            this.BoundingBoxMin    = reader.ReadBlock <RAGE_Vector4>();
            this.BoundingBoxMax    = reader.ReadBlock <RAGE_Vector4>();
            this.BoundingBoxCenter = reader.ReadBlock <RAGE_Vector4>();
            this.QuantumInverse    = reader.ReadBlock <RAGE_Vector4>();
            this.Quantum           = reader.ReadBlock <RAGE_Vector4>();
            this.TreesPointer      = reader.ReadUInt64();
            this.TreesCount1       = reader.ReadUInt16();
            this.TreesCount2       = reader.ReadUInt16();
            this.Unknown_7Ch       = reader.ReadUInt32();

            // read reference data
            this.Nodes = reader.ReadBlockAt <ResourceSimpleArray <BVHNode> >(
                this.NodesPointer, // offset
                this.NodesCount
                );
            this.Trees = reader.ReadBlockAt <ResourceSimpleArray <BVHTreeInfo> >(
                this.TreesPointer, // offset
                this.TreesCount1
                );
        }
コード例 #14
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.HashesPointer = reader.ReadUInt64();
            this.HashesCount1 = reader.ReadUInt16();
            this.HashesCount2 = reader.ReadUInt16();
            this.Unknown_2Ch = reader.ReadUInt32();
            this.EffectRulesPointer = reader.ReadUInt64();
            this.EffectRulesCount1 = reader.ReadUInt16();
            this.EffectRulesCount2 = reader.ReadUInt16();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.Hashes = reader.ReadBlockAt<ResourceSimpleArray<uint_r>>(
                this.HashesPointer, // offset
                this.HashesCount1
            );
            this.EffectRules = reader.ReadBlockAt<ResourcePointerArray64<EffectRule_GTA5_pc>>(
                this.EffectRulesPointer, // offset
                this.EffectRulesCount1
            );
        }
コード例 #15
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.NamePointer            = reader.ReadUInt64();
            this.LightAttributesPointer = reader.ReadUInt64();
            this.LightAttributesCount1  = reader.ReadUInt16();
            this.LightAttributesCount2  = reader.ReadUInt16();
            this.Unknown_BCh            = reader.ReadUInt32();
            this.Unknown_C0h            = reader.ReadUInt32();
            this.Unknown_C4h            = reader.ReadUInt32();
            this.BoundPointer           = reader.ReadUInt64();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.LightAttributes = reader.ReadBlockAt <ResourceSimpleArray <LightAttributes_GTA5_pc> >(
                this.LightAttributesPointer, // offset
                this.LightAttributesCount1
                );
            this.Bound = reader.ReadBlockAt <Bound_GTA5_pc>(
                this.BoundPointer // offset
                );
        }
コード例 #16
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT            = reader.ReadUInt32();
            this.Unknown_4h     = reader.ReadUInt32();
            this.IndicesCount   = reader.ReadUInt32();
            this.Unknown_Ch     = reader.ReadUInt32();
            this.IndicesPointer = reader.ReadUInt64();
            this.Unknown_18h    = reader.ReadUInt32();
            this.Unknown_1Ch    = reader.ReadUInt32();
            this.Unknown_20h    = reader.ReadUInt32();
            this.Unknown_24h    = reader.ReadUInt32();
            this.Unknown_28h    = reader.ReadUInt32();
            this.Unknown_2Ch    = reader.ReadUInt32();
            this.Unknown_30h    = reader.ReadUInt32();
            this.Unknown_34h    = reader.ReadUInt32();
            this.Unknown_38h    = reader.ReadUInt32();
            this.Unknown_3Ch    = reader.ReadUInt32();
            this.Unknown_40h    = reader.ReadUInt32();
            this.Unknown_44h    = reader.ReadUInt32();
            this.Unknown_48h    = reader.ReadUInt32();
            this.Unknown_4Ch    = reader.ReadUInt32();
            this.Unknown_50h    = reader.ReadUInt32();
            this.Unknown_54h    = reader.ReadUInt32();
            this.Unknown_58h    = reader.ReadUInt32();
            this.Unknown_5Ch    = reader.ReadUInt32();

            // read reference data
            this.Indices = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >(
                this.IndicesPointer, // offset
                this.IndicesCount
                );
        }
コード例 #17
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT                  = reader.ReadUInt32();
            this.Unknown_4h           = reader.ReadUInt32();
            this.GeometriesPointer    = reader.ReadUInt64();
            this.GeometriesCount1     = reader.ReadUInt16();
            this.GeometriesCount2     = reader.ReadUInt16();
            this.Unknown_14h          = reader.ReadUInt32();
            this.Unknown_18h_Pointer  = reader.ReadUInt64();
            this.ShaderMappingPointer = reader.ReadUInt64();
            this.Unknown_28h          = reader.ReadUInt32();
            this.Unknown_2Ch          = reader.ReadUInt32();

            // read reference data
            this.Geometries = reader.ReadBlockAt <ResourcePointerArray64 <DrawableGeometry> >(
                this.GeometriesPointer, // offset
                this.GeometriesCount1
                );
            this.Unknown_18h_Data = reader.ReadBlockAt <ResourceSimpleArray <RAGE_AABB> >(
                this.Unknown_18h_Pointer, // offset
                this.GeometriesCount1 > 1 ? this.GeometriesCount1 + 1 : this.GeometriesCount1
                );
            this.ShaderMapping = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >(
                this.ShaderMappingPointer, // offset
                this.GeometriesCount1
                );
        }
コード例 #18
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.p1          = reader.ReadUInt64();
            this.c1a         = reader.ReadUInt16();
            this.c1b         = reader.ReadUInt16();
            this.Unknown_Ch  = reader.ReadUInt32();
            this.p2          = reader.ReadUInt64();
            this.c2a         = reader.ReadUInt16();
            this.c2b         = reader.ReadUInt16();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.p3          = reader.ReadUInt64();
            this.c3a         = reader.ReadUInt16();
            this.c3b         = reader.ReadUInt16();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_012> >(
                this.p1, // offset
                this.c1a
                );
            this.p2data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_013> >(
                this.p2, // offset
                this.c2a
                );
            this.p3data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_017> >(
                this.p3, // offset
                this.c3a
                );
        }
コード例 #19
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT                 = reader.ReadUInt32();
            this.Unknown_4h          = reader.ReadUInt32();
            this.Unknown_8h          = reader.ReadUInt32();
            this.Unknown_Ch          = reader.ReadUInt32();
            this.Unknown_10h_Pointer = reader.ReadUInt64();
            this.Unknown_18h_Pointer = reader.ReadUInt64();
            this.Unknown_20h         = reader.ReadUInt32();
            this.Unknown_24h         = reader.ReadUInt32();
            this.Unknown_28h         = reader.ReadUInt32();
            this.Unknown_2Ch         = reader.ReadUInt32();
            this.Count0              = reader.ReadUInt16();
            this.Count1              = reader.ReadUInt16();
            this.Unknown_34h         = reader.ReadUInt32();
            this.Unknown_38h         = reader.ReadUInt32();
            this.Unknown_3Ch         = reader.ReadUInt32();

            // read reference data
            this.Unknown_10h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_D_004> >(
                this.Unknown_10h_Pointer, // offset
                this.Count0
                );
            this.Unknown_18h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_D_003> >(
                this.Unknown_18h_Pointer, // offset
                this.Count1
                );
        }
コード例 #20
0
ファイル: BVH_GTA5_pc.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Unknown_0h_Pointer = reader.ReadUInt64();
            this.Count1 = reader.ReadUInt32();
            this.Count2 = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadBlock<RAGE_Vector4>();
            this.Unknown_30h = reader.ReadBlock<RAGE_Vector4>();
            this.Unknown_40h = reader.ReadBlock<RAGE_Vector4>();
            this.Unknown_50h = reader.ReadBlock<RAGE_Vector4>();
            this.Unknown_60h = reader.ReadBlock<RAGE_Vector4>();
            this.Unknown_70h_Pointer = reader.ReadUInt64();
            this.Count3 = reader.ReadUInt16();
            this.Count4 = reader.ReadUInt16();
            this.Unknown_7Ch = reader.ReadUInt32();

            // read reference data
            this.Unknown_0h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_B_004>>(
                this.Unknown_0h_Pointer, // offset
                this.Count1
            );
            this.Unknown_70h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_B_005>>(
                this.Unknown_70h_Pointer, // offset
                this.Count3
            );
        }
コード例 #21
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT                 = reader.ReadUInt32();
            this.Unknown_4h          = reader.ReadUInt32();
            this.Unknown_8h          = reader.ReadUInt32();
            this.Unknown_Ch          = reader.ReadUInt32();
            this.Unknown_10h         = reader.ReadUInt32();
            this.Unknown_14h         = reader.ReadUInt32();
            this.VertexBufferPointer = reader.ReadUInt64();
            this.Unknown_20h         = reader.ReadUInt32();
            this.Unknown_24h         = reader.ReadUInt32();
            this.Unknown_28h         = reader.ReadUInt32();
            this.Unknown_2Ch         = reader.ReadUInt32();
            this.Unknown_30h         = reader.ReadUInt32();
            this.Unknown_34h         = reader.ReadUInt32();
            this.IndexBufferPointer  = reader.ReadUInt64();
            this.Unknown_40h         = reader.ReadUInt32();
            this.Unknown_44h         = reader.ReadUInt32();
            this.Unknown_48h         = reader.ReadUInt32();
            this.Unknown_4Ch         = reader.ReadUInt32();
            this.Unknown_50h         = reader.ReadUInt32();
            this.Unknown_54h         = reader.ReadUInt32();
            this.IndicesCount        = reader.ReadUInt32();
            this.TrianglesCount      = reader.ReadUInt32();
            this.VerticesCount       = reader.ReadUInt16();
            this.Unknown_62h         = reader.ReadUInt16();
            this.Unknown_64h         = reader.ReadUInt32();
            this.BoneIdsPointer      = reader.ReadUInt64();
            this.VertexStride        = reader.ReadUInt16();
            this.BoneIdsCount        = reader.ReadUInt16();
            this.Unknown_74h         = reader.ReadUInt32();
            this.VertexDataPointer   = reader.ReadUInt64();
            this.Unknown_80h         = reader.ReadUInt32();
            this.Unknown_84h         = reader.ReadUInt32();
            this.Unknown_88h         = reader.ReadUInt32();
            this.Unknown_8Ch         = reader.ReadUInt32();
            this.Unknown_90h         = reader.ReadUInt32();
            this.Unknown_94h         = reader.ReadUInt32();

            // read reference data
            this.VertexBuffer = reader.ReadBlockAt <VertexBuffer>(
                this.VertexBufferPointer // offset
                );
            this.IndexBuffer = reader.ReadBlockAt <IndexBuffer>(
                this.IndexBufferPointer // offset
                );
            this.BoneIds = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >(
                this.BoneIdsPointer, // offset
                this.BoneIdsCount
                );
            this.VertexData = reader.ReadBlockAt <VertexData_GTA5_pc>(
                this.VertexDataPointer, // offset
                this.VertexStride,
                this.VerticesCount,
                this.VertexBuffer.Info
                );
        }
コード例 #22
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT               = reader.ReadUInt32();
            this.Unknown_4h        = reader.ReadUInt32();
            this.Unknown_8h        = reader.ReadUInt32();
            this.Unknown_Ch        = reader.ReadUInt32();
            this.Unknown_10h       = reader.ReadUInt32();
            this.Unknown_14h       = reader.ReadUInt32();
            this.Unknown_18h       = reader.ReadUInt32();
            this.Unknown_1Ch       = reader.ReadUInt32();
            this.Unknown_20h       = reader.ReadUInt32();
            this.Unknown_24h       = reader.ReadUInt32();
            this.Unknown_28h       = reader.ReadUInt32();
            this.Unknown_2Ch       = reader.ReadUInt32();
            this.Unknown_30h       = reader.ReadUInt32();
            this.Unknown_34h       = reader.ReadUInt32();
            this.Unknown_38h       = reader.ReadUInt32();
            this.Unknown_3Ch       = reader.ReadUInt32();
            this.Unknown_40h       = reader.ReadUInt32();
            this.Unknown_44h       = reader.ReadUInt32();
            this.Unknown_48h       = reader.ReadUInt32();
            this.Unknown_4Ch       = reader.ReadUInt32();
            this.Unknown_50h       = reader.ReadUInt32();
            this.Unknown_54h       = reader.ReadUInt32();
            this.Unknown_58h       = reader.ReadUInt32();
            this.Unknown_5Ch       = reader.ReadUInt32();
            this.Unknown_60h       = reader.ReadUInt32();
            this.Unknown_64h       = reader.ReadUInt32();
            this.Unknown_68h       = reader.ReadUInt32();
            this.Unknown_6Ch       = reader.ReadUInt32();
            this.Unknown_70h       = reader.ReadUInt32();
            this.Unknown_74h       = reader.ReadUInt32();
            this.JointTypesPointer = reader.ReadUInt64();
            this.p2 = reader.ReadUInt64();
            this.c1 = reader.ReadByte();
            this.JointTypesCount = reader.ReadByte();
            this.Unknown_8Ah     = reader.ReadUInt16();
            this.Unknown_8Ch     = reader.ReadUInt32();
            this.Unknown_90h     = reader.ReadUInt32();
            this.Unknown_94h     = reader.ReadUInt32();
            this.Unknown_98h     = reader.ReadUInt32();
            this.Unknown_9Ch     = reader.ReadUInt32();
            this.Unknown_A0h     = reader.ReadUInt32();
            this.Unknown_A4h     = reader.ReadUInt32();
            this.Unknown_A8h     = reader.ReadUInt32();
            this.Unknown_ACh     = reader.ReadUInt32();

            // read reference data
            this.JointTypes = reader.ReadBlockAt <ResourcePointerArray64 <JointType> >(
                this.JointTypesPointer, // offset
                this.JointTypesCount
                );
            this.p2data = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Vector4> >(
                this.p2, // offset
                this.c1
                );
        }
コード例 #23
0
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     BonesCount  = reader.ReadUInt32();
     Unknown_04h = reader.ReadUInt32();
     Unknown_08h = reader.ReadUInt32();
     Unknown_0Ch = reader.ReadUInt32();
     Bones       = reader.ReadBlock <ResourceSimpleArray <Bone> >(BonesCount);
 }
コード例 #24
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read reference data
            this.data = reader.ReadBlockAt<ResourceSimpleArray<byte_r>>(
                this.DataPointer, // offset
                this.DataLength
            );
        }
コード例 #25
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read reference data
            this.data = reader.ReadBlockAt <ResourceSimpleArray <byte_r> >(
                this.DataPointer, // offset
                this.DataLength
                );
        }
コード例 #26
0
ファイル: MetaReader.cs プロジェクト: TheMrCreator/GameViewer
        private byte[] ToBytes(ResourceSimpleArray <byte_r> data)
        {
            var result = new byte[data.Count];

            for (int i = 0; i < data.Count; i++)
            {
                result[i] = data[i].Value;
            }
            return(result);
        }
コード例 #27
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read reference data
            this.data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_M_003_infos_entry>>(
                this.DataPointer, // offset
                this.DataLength / 8
            );
        }
コード例 #28
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read reference data
            this.data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_003_infos_entry> >(
                this.DataPointer, // offset
                this.DataLength / 8
                );
        }
コード例 #29
0
ファイル: EnumInfo.cs プロジェクト: indilo53/gta-toolkit
        public EnumInfo(int enumNameHash, int enumKey, long entriesPointer, int Unkown_14h, ResourceSimpleArray <EnumEntryInfo> entries)
        {
            this.EnumNameHash   = enumNameHash;
            this.EnumKey        = enumKey;
            this.EntriesPointer = EntriesPointer;
            this.EntriesCount   = entries.Count;
            this.Unknown_14h    = Unkown_14h;

            this.Entries = entries;
        }
コード例 #30
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT                            = reader.ReadUInt32();
            this.Unknown_4h                     = reader.ReadUInt32();
            this.Unknown_8h                     = reader.ReadUInt32();
            this.Unknown_Ch                     = reader.ReadUInt32();
            this.Unknown_10h_Pointer            = reader.ReadUInt64();
            this.Count1                         = reader.ReadUInt16();
            this.Count2                         = reader.ReadUInt16();
            this.Unknown_1Ch                    = reader.ReadUInt32();
            this.BonesPointer                   = reader.ReadUInt64();
            this.TransformationsInvertedPointer = reader.ReadUInt64();
            this.TransformationsPointer         = reader.ReadUInt64();
            this.ParentIndicesPointer           = reader.ReadUInt64();
            this.Unknown_40h_Pointer            = reader.ReadUInt64();
            this.Unknown_48h                    = reader.ReadUInt32();
            this.Unknown_4Ch                    = reader.ReadUInt32();
            this.Unknown_50h                    = reader.ReadUInt32();
            this.Unknown_54h                    = reader.ReadUInt32();
            this.Unknown_58h                    = reader.ReadUInt32();
            this.Unknown_5Ch                    = reader.ReadUInt16();
            this.BonesCount                     = reader.ReadUInt16();
            this.Count4                         = reader.ReadUInt16();
            this.Unknown_62h                    = reader.ReadUInt16();
            this.Unknown_64h                    = reader.ReadUInt32();
            this.Unknown_68h                    = reader.ReadUInt32();
            this.Unknown_6Ch                    = reader.ReadUInt32();

            // read reference data
            this.Unknown_10h_Data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_D_001> >(
                this.Unknown_10h_Pointer, // offset
                this.Count1
                );
            this.Bones = reader.ReadBlockAt <ResourceSimpleArray <Bone> >(
                this.BonesPointer, // offset
                this.BonesCount
                );
            this.TransformationsInverted = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Matrix4> >(
                this.TransformationsInvertedPointer, // offset
                this.BonesCount
                );
            this.Transformations = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Matrix4> >(
                this.TransformationsPointer, // offset
                this.BonesCount
                );
            this.ParentIndices = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >(
                this.ParentIndicesPointer, // offset
                this.BonesCount
                );
            this.Unknown_40h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >(
                this.Unknown_40h_Pointer, // offset
                this.Count4
                );
        }
コード例 #31
0
ファイル: Unknown_F_002.cs プロジェクト: indilo53/gta-toolkit
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.Unknown_0h = reader.ReadUInt32();
     this.Unknown_4h = reader.ReadUInt32();
     this.cnt1       = reader.ReadUInt32();
     this.Unknown_Ch = reader.ReadUInt32();
     this.Data       = reader.ReadBlock <ResourceSimpleArray <byte_r> >(
         cnt1 - 16
         );
 }
コード例 #32
0
ファイル: Unknown_M_004.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Unknown_0h = reader.ReadUInt16();

            reader.Endianess = Endianess.BigEndian;
            this.DataLength = reader.ReadUInt16();
            reader.Endianess = Endianess.LittleEndian;

            Data = reader.ReadBlock<ResourceSimpleArray<byte_r>>(DataLength);
        }
コード例 #33
0
ファイル: Unknown_F_003.cs プロジェクト: isti37/gta-toolkit
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.Unknown_0h = reader.ReadUInt32();
     this.Unknown_4h = reader.ReadUInt32();
     this.cnt1 = reader.ReadUInt32();
     this.Unknown_Ch = reader.ReadUInt32();
     this.Data = reader.ReadBlock<ResourceSimpleArray<byte_r>>(
       cnt1 - 16
       );
 }
コード例 #34
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Unknown_0h = reader.ReadUInt16();

            reader.Endianess = Endianess.BigEndian;
            this.length      = reader.ReadUInt16();
            reader.Endianess = Endianess.LittleEndian;

            data = reader.ReadBlock <ResourceSimpleArray <byte_r> >(length);
        }
コード例 #35
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VerticesPointer = reader.ReadUInt64();
            this.VerticesCount   = reader.ReadUInt32();
            this.Unknown_Ch      = reader.ReadUInt32();

            // read reference data
            this.Vertices = reader.ReadBlockAt <ResourceSimpleArray <Vertex> >(
                this.VerticesPointer, // offset
                this.VerticesCount
                );
        }
コード例 #36
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.p1         = reader.ReadUInt64();
            this.c1         = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >(
                this.p1, // offset
                this.c1
                );
        }
コード例 #37
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Hash = reader.ReadUInt32();
            this.DataLength = reader.ReadUInt32();
            this.DataPointer = reader.ReadUInt64();

            // read reference data
            this.Data = reader.ReadBlockAt<ResourceSimpleArray<byte_r>>(
                this.DataPointer, // offset
                this.DataLength
            );
        }
コード例 #38
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Hash        = reader.ReadUInt32();
            this.DataLength  = reader.ReadUInt32();
            this.DataPointer = reader.ReadUInt64();

            // read reference data
            this.Data = reader.ReadBlockAt <ResourceSimpleArray <byte_r> >(
                this.DataPointer, // offset
                this.DataLength
                );
        }
コード例 #39
0
        public StructureInfo(int structureNameHash, int structureKey, int unknown_8h, int unknown_Ch, long entriesPointer, int structureLength, short unknown_1Ch, ResourceSimpleArray <StructureEntryInfo> entries)
        {
            this.StructureNameHash = structureNameHash;
            this.StructureKey      = structureKey;
            this.Unknown_8h        = unknown_8h;
            this.Unknown_Ch        = unknown_Ch;
            this.EntriesPointer    = entriesPointer;
            this.StructureLength   = structureLength;
            this.Unknown_1Ch       = unknown_1Ch;
            this.EntriesCount      = (short)entries.Count;

            this.Entries = entries;
        }
コード例 #40
0
ファイル: VerticesList.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.p1 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourceSimpleArray<Vertex>>(
                this.p1, // offset
                this.c1
            );
        }
コード例 #41
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);


            // read reference data
            this.data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_T_004_objs_entry>>(
                this.DataPointer, // offset
                this.DataLength / 144
            );

            if (this.DataLength % 144 != 0)
                throw new Exception("length error in Unknown_T_004_82d6fc83_entry");
        }
コード例 #42
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.NameHash = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.EntriesPointer = reader.ReadUInt64();
            this.EntriesCount = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();

            // read reference data
            this.Entries = reader.ReadBlockAt<ResourceSimpleArray<Unknown_META_003>>(
                this.EntriesPointer, // offset
                this.EntriesCount
            );
        }
コード例 #43
0
ファイル: MetaWriter.cs プロジェクト: TheMrCreator/GameViewer
        private ResourceSimpleArray <byte_r> StreamToResourceBytes(Stream stream)
        {
            var resourceBytes = new ResourceSimpleArray <byte_r>();
            var buffer        = new byte[stream.Length];

            stream.Position = 0;
            stream.Read(buffer, 0, (int)stream.Length);
            foreach (var b in buffer)
            {
                var rb = new byte_r();
                rb.Value = b;
                resourceBytes.Add(rb);
            }
            return(resourceBytes);
        }
コード例 #44
0
ファイル: Unknown_F_002.cs プロジェクト: isti37/gta-toolkit
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.VFT = reader.ReadUInt32();
     this.Unknown_4h = reader.ReadUInt32();
     this.Unknown_8h = reader.ReadUInt32();
     this.Unknown_Ch = reader.ReadUInt32();
     this.cnt = reader.ReadUInt32();
     this.Unknown_14h = reader.ReadUInt32();
     this.Unknown_18h = reader.ReadUInt32();
     this.Unknown_1Ch = reader.ReadUInt32();
     this.Data = reader.ReadBlock<ResourceSimpleArray<RAGE_Matrix4>>(
       cnt
       );
 }
コード例 #45
0
ファイル: Unknown_T_002.cs プロジェクト: Leninsky/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Unknown_0h  = reader.ReadUInt32();
            this.Unknown_4h  = reader.ReadUInt32();
            this.UnkPtr_8h   = reader.ReadUInt64();
            this.length      = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();

            // read reference data
            this.UnkData_8h = reader.ReadBlockAt <ResourceSimpleArray <Unknown_T_002_entry> >(
                this.UnkPtr_8h, // offset
                this.length
                );
        }
コード例 #46
0
ファイル: EnumInfo.cs プロジェクト: indilo53/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.EnumNameHash   = reader.ReadInt32();
            this.EnumKey        = reader.ReadInt32();
            this.EntriesPointer = reader.ReadInt64();
            this.EntriesCount   = reader.ReadInt32();
            this.Unknown_14h    = reader.ReadInt32();

            // read reference data
            this.Entries = reader.ReadBlockAt <ResourceSimpleArray <EnumEntryInfo> >(
                (ulong)this.EntriesPointer, // offset
                this.EntriesCount
                );
        }
コード例 #47
0
ファイル: Unknown_M_002.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Unknown_0h = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.ptr1 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();

            // read reference data
            this.ptr1data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_M_002_entry>>(
                this.ptr1, // offset
                this.c1
            );
        }
コード例 #48
0
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.VFT         = reader.ReadUInt32();
     this.Unknown_4h  = reader.ReadUInt32();
     this.Unknown_8h  = reader.ReadUInt32();
     this.Unknown_Ch  = reader.ReadUInt32();
     this.cnt         = reader.ReadUInt32();
     this.Unknown_14h = reader.ReadUInt32();
     this.Unknown_18h = reader.ReadUInt32();
     this.Unknown_1Ch = reader.ReadUInt32();
     this.Data        = reader.ReadBlock <ResourceSimpleArray <RAGE_Matrix4> >(
         cnt
         );
 }
コード例 #49
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.EntriesPointer = reader.ReadUInt64();
            this.EntriesCount1 = reader.ReadUInt16();
            this.EntriesCount2 = reader.ReadUInt16();
            this.Unknown_1Ch = reader.ReadUInt32();

            // read reference data
            this.Entries = reader.ReadBlockAt<ResourceSimpleArray<VehicleRecordsEntry_GTA5_pc>>(
                this.EntriesPointer, // offset
                this.EntriesCount1
            );
        }
コード例 #50
0
ファイル: Clip2_GTA5_pc.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);
            this.p4 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.Unknown_60h = reader.ReadUInt32();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            this.p4data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_CL_100>>(
                this.p4, // offset
                this.c1
            );
        }
コード例 #51
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.ChildrenPointer = reader.ReadUInt64();
            this.Unknown_78h_Pointer = reader.ReadUInt64();
            this.Unknown_80h_Pointer = reader.ReadUInt64();
            this.Unknown_88h_Pointer = reader.ReadUInt64();
            this.Unknown_90h_Pointer = reader.ReadUInt64();
            this.Unknown_98h_Pointer = reader.ReadUInt64();
            this.ChildrenCount1 = reader.ReadUInt16();
            this.ChildrenCount2 = reader.ReadUInt16();
            this.Unknown_A4h = reader.ReadUInt32();
            this.Unknown_A8h_Pointer = reader.ReadUInt64();

            // read reference data
            this.Children = reader.ReadBlockAt<ResourcePointerArray64<Bound_GTA5_pc>>(
                this.ChildrenPointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_78h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>(
                this.Unknown_78h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_80h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>(
                this.Unknown_80h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_88h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_AABB>>(
                this.Unknown_88h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_90h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_B_002>>(
                this.Unknown_90h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_98h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_B_002>>(
                this.Unknown_98h_Pointer, // offset
                this.ChildrenCount1
            );
            this.Unknown_A8h_Data = reader.ReadBlockAt<BVH_GTA5_pc>(
                this.Unknown_A8h_Pointer // offset
            );
        }
コード例 #52
0
ファイル: Unknown_T_003.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Unknown_0h = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.ptr = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt16();
            this.count = reader.ReadUInt16();

            // read reference data
            this.UnkArray = reader.ReadBlockAt<ResourceSimpleArray<Unknown_T_003_entry>>(
                this.ptr, // offset
                this.count
            );
        }
コード例 #53
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.NameHash = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.FieldsPointer = reader.ReadUInt64();
            this.ClassLength = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt16();
            this.FieldsCount = reader.ReadUInt16();

            // read reference data
            this.Fields = reader.ReadBlockAt<ResourceSimpleArray<MetaFieldInfo_GTA5_pc>>(
                this.FieldsPointer, // offset
                this.FieldsCount
            );
        }
コード例 #54
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.p1 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            this.Unknown_2Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourceSimpleArray<byte_r>>(
                this.p1, // offset
                this.c2
            );
        }
コード例 #55
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.c1 = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.p1 = reader.ReadUInt64();
            this.p2 = reader.ReadUInt64();
            this.c2 = reader.ReadUInt16();
            this.c3 = reader.ReadUInt16();
            this.Unknown_1Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourceSimpleArray<ushort_r>>(
                this.p1, // offset
                this.c2
            );
            this.p2data = reader.ReadBlockAt<ResourceSimpleArray<SectorDataUnk>>(
                this.p2, // offset
                this.c3
            );
        }
コード例 #56
0
ファイル: PolysData.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.p1 = reader.ReadUInt64();
            this.p2 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourceSimpleArray<PolysList>>(
                this.p1, // offset
                this.c1
            );
            this.p2data = reader.ReadBlockAt<ResourceSimpleArray<uint_r>>(
                this.p2, // offset
                this.c1
            );
        }
コード例 #57
0
		/// <summary>
		/// Reads the data-block from a stream.
		/// </summary>
		public override void Read(ResourceDataReader reader, params object[] parameters)
		{
			base.Read(reader, parameters);

            // read structure data
            this.Unknown_A8h = reader.ReadUInt32();
            this.Unknown_ACh = reader.ReadUInt32();
            this.Unknown_B0h = reader.ReadUInt32();
			this.Unknown_B4h = reader.ReadUInt32();
			this.Unknown_B8h = reader.ReadUInt32();
			this.Unknown_BCh = reader.ReadUInt32();
			this.Unknown_C0h = reader.ReadUInt32();
			this.Unknown_C4h = reader.ReadUInt32();
			this.Unknown_C8h = reader.ReadUInt32();
			this.Unknown_CCh = reader.ReadUInt32();
			this.Unknown_D0h = reader.ReadUInt32();
			this.Unknown_D4h = reader.ReadUInt32();
			this.Unknown_D8h = reader.ReadUInt32();
			this.Unknown_DCh = reader.ReadUInt32();
			this.Unknown_E0h = reader.ReadUInt32();
			this.Unknown_E4h = reader.ReadUInt32();
			this.Unknown_E8h = reader.ReadUInt32();
			this.Unknown_ECh = reader.ReadUInt32();
			this.BoundPointer = reader.ReadUInt64();
			this.Unknown_F8h_Pointer = reader.ReadUInt64();
			this.Count1 = reader.ReadUInt16();
			this.Count2 = reader.ReadUInt16();
			this.Unknown_104h = reader.ReadUInt32();
			this.Unknown_108h_Pointer = reader.ReadUInt64();
			this.Count3 = reader.ReadUInt16();
			this.Count4 = reader.ReadUInt16();
			this.Unknown_114h = reader.ReadUInt32();
			this.Unknown_118h = reader.ReadUInt32();
			this.Unknown_11Ch = reader.ReadUInt32();
			this.Unknown_120h = reader.ReadUInt32();
			this.Unknown_124h = reader.ReadUInt32();
			this.Unknown_128h = reader.ReadUInt32();
			this.Unknown_12Ch = reader.ReadUInt32();
			this.NamePointer = reader.ReadUInt64();
			this.Unknown_138h = reader.ReadUInt32();
			this.Unknown_13Ch = reader.ReadUInt32();
			this.Unknown_140h = reader.ReadUInt32();
			this.Unknown_144h = reader.ReadUInt32();
			this.Unknown_148h = reader.ReadUInt32();
			this.Unknown_14Ch = reader.ReadUInt32();

			// read reference data
			this.Bound = reader.ReadBlockAt<Bound_GTA5_pc>(
				this.BoundPointer // offset
			);
			this.Unknown_F8h_Data = reader.ReadBlockAt<ResourceSimpleArray<ulong_r>>(
				this.Unknown_F8h_Pointer, // offset
				this.Count1
			);
			this.Unknown_108h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>(
				this.Unknown_108h_Pointer, // offset
				this.Count2
			);
			this.Name = reader.ReadBlockAt<string_r>(
				this.NamePointer // offset
			);
		}
コード例 #58
0
ファイル: Unknown_F_005.cs プロジェクト: isti37/gta-toolkit
		/// <summary>
		/// Reads the data-block from a stream.
		/// </summary>
		public override void Read(ResourceDataReader reader, params object[] parameters)
		{
			// read structure data
			this.VFT = reader.ReadUInt32();
			this.Unknown_4h = reader.ReadUInt32();
			this.Unknown_8h = reader.ReadUInt32();
			this.Unknown_Ch = reader.ReadUInt32();
			this.Unknown_10h = reader.ReadUInt32();
			this.Unknown_14h = reader.ReadUInt32();
			this.Unknown_18h_Pointer = reader.ReadUInt64();
			this.Unknown_20h = reader.ReadUInt32();
			this.Unknown_24h = reader.ReadUInt32();
			this.Unknown_28h = reader.ReadUInt32();
			this.Unknown_2Ch = reader.ReadUInt32();
			this.Unknown_30h = reader.ReadUInt32();
			this.Unknown_34h = reader.ReadUInt32();
			this.Unknown_38h = reader.ReadUInt32();
			this.Unknown_3Ch = reader.ReadUInt32();
			this.Unknown_40h = reader.ReadUInt32();
			this.Unknown_44h = reader.ReadUInt32();
			this.Unknown_48h = reader.ReadUInt32();
			this.Unknown_4Ch = reader.ReadUInt32();
			this.Unknown_50h = reader.ReadUInt32();
			this.Unknown_54h = reader.ReadUInt32();
			this.Unknown_58h = reader.ReadUInt32();
			this.Unknown_5Ch = reader.ReadUInt32();
			this.Unknown_60h = reader.ReadUInt32();
			this.Unknown_64h = reader.ReadUInt32();
			this.Unknown_68h = reader.ReadUInt32();
			this.Unknown_6Ch = reader.ReadUInt32();
			this.Unknown_70h = reader.ReadUInt32();
			this.Unknown_74h = reader.ReadUInt32();
			this.Unknown_78h = reader.ReadUInt32();
			this.Unknown_7Ch = reader.ReadUInt32();
			this.Unknown_80h_Pointer = reader.ReadUInt64();
			this.Count1 = reader.ReadUInt16();
			this.Count2 = reader.ReadUInt16();
			this.Unknown_8Ch = reader.ReadUInt32();
			this.Unknown_90h = reader.ReadUInt32();
			this.Unknown_94h = reader.ReadUInt32();
			this.Unknown_98h = reader.ReadUInt32();
			this.Unknown_9Ch = reader.ReadUInt32();
			this.Unknown_A0h = reader.ReadUInt32();
			this.Unknown_A4h = reader.ReadUInt32();
			this.Unknown_A8h = reader.ReadUInt32();
			this.Unknown_ACh = reader.ReadUInt32();
			this.Unknown_B0h = reader.ReadUInt32();
			this.Unknown_B4h = reader.ReadUInt32();
			this.Unknown_B8h = reader.ReadUInt32();
			this.Unknown_BCh = reader.ReadUInt32();
			this.Unknown_C0h = reader.ReadUInt32();
			this.Unknown_C4h = reader.ReadUInt32();
			this.Unknown_C8h = reader.ReadUInt32();
			this.Unknown_CCh = reader.ReadUInt32();
			this.Unknown_D0h = reader.ReadUInt32();
			this.Unknown_D4h = reader.ReadUInt32();
			this.Unknown_D8h = reader.ReadUInt32();
			this.Unknown_DCh = reader.ReadUInt32();
			this.Unknown_E0h = reader.ReadUInt32();
			this.Unknown_E4h = reader.ReadUInt32();
			this.Unknown_E8h = reader.ReadUInt32();
			this.Unknown_ECh = reader.ReadUInt32();
			this.Unknown_F0h = reader.ReadUInt32();
			this.Unknown_F4h = reader.ReadUInt32();
			this.Unknown_F8h = reader.ReadUInt32();
			this.Unknown_FCh = reader.ReadUInt32();
			this.Unknown_100h_Pointer = reader.ReadUInt64();
			this.Count3 = reader.ReadUInt16();
			this.Count4 = reader.ReadUInt16();
			this.Unknown_10Ch = reader.ReadUInt32();
			this.Unknown_110h_Pointer = reader.ReadUInt64();
			this.Count5 = reader.ReadUInt16();
			this.Count6 = reader.ReadUInt16();
			this.Unknown_11Ch = reader.ReadUInt32();
			this.Unknown_120h = reader.ReadUInt32();
			this.Unknown_124h = reader.ReadUInt32();
			this.Unknown_128h = reader.ReadUInt32();
			this.Unknown_12Ch = reader.ReadUInt32();
			this.Unknown_130h_Pointer = reader.ReadUInt64();
			this.Unknown_138h = reader.ReadUInt32();
			this.Unknown_13Ch = reader.ReadUInt32();
			this.Unknown_140h_Pointer = reader.ReadUInt64();
			this.Unknown_148h = reader.ReadUInt32();
			this.Unknown_14Ch = reader.ReadUInt32();
			this.Unknown_150h = reader.ReadUInt32();
			this.Unknown_154h = reader.ReadUInt32();
			this.Unknown_158h = reader.ReadUInt32();
			this.Unknown_15Ch = reader.ReadUInt32();
			this.Unknown_160h = reader.ReadUInt32();
			this.Unknown_164h = reader.ReadUInt32();
			this.Unknown_168h = reader.ReadUInt32();
			this.Unknown_16Ch = reader.ReadUInt32();
			this.Unknown_170h = reader.ReadUInt32();
			this.Unknown_174h = reader.ReadUInt32();
			this.Unknown_178h = reader.ReadUInt32();
			this.Unknown_17Ch = reader.ReadUInt32();

			// read reference data
			this.Unknown_18h_Data = reader.ReadBlockAt<Unknown_F_020>(
				this.Unknown_18h_Pointer // offset
			);
			this.Unknown_100h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Vector4>>(
				this.Unknown_100h_Pointer, // offset
				this.Count3
			);
			this.Unknown_80h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Vector4>>(
				this.Unknown_80h_Pointer, // offset
				this.Count1
			);
			this.Unknown_110h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Vector4>>(
				this.Unknown_110h_Pointer, // offset
				this.Count5
			);
			this.Unknown_130h_Data = reader.ReadBlockAt<Unknown_F_024>(
				this.Unknown_130h_Pointer // offset
			);
			this.Unknown_140h_Data = reader.ReadBlockAt<Unknown_F_023>(
				this.Unknown_140h_Pointer // offset
			);
		}
コード例 #59
0
ファイル: Unknown_P_032.cs プロジェクト: isti37/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Unknown_0h = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();
            this.Unknown_30h = reader.ReadUInt32();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();
            this.p12 = reader.ReadUInt64();
            this.c12a = reader.ReadUInt16();
            this.c12b = reader.ReadUInt16();
            this.Unknown_4Ch = reader.ReadUInt32();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadUInt32();

            // read reference data
            this.p12data = reader.ReadBlockAt<ResourceSimpleArray<uint_r>>(
                this.p12, // offset
                this.c12a
            );
        }
コード例 #60
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Unknown_10h_Pointer = reader.ReadUInt64();
            this.Count1 = reader.ReadUInt16();
            this.Count2 = reader.ReadUInt16();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.BonesPointer = reader.ReadUInt64();
            this.Unknown_28h_Pointer = reader.ReadUInt64();
            this.Unknown_30h_Pointer = reader.ReadUInt64();
            this.Unknown_38h_Pointer = reader.ReadUInt64();
            this.Unknown_40h_Pointer = reader.ReadUInt64();
            this.Unknown_48h = reader.ReadUInt32();
            this.Unknown_4Ch = reader.ReadUInt32();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadUInt32();
            this.Unknown_58h = reader.ReadUInt32();
            this.Unknown_5Ch = reader.ReadUInt16();
            this.BonesCount = reader.ReadUInt16();
            this.Count4 = reader.ReadUInt16();
            this.Unknown_62h = reader.ReadUInt16();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.Unknown_10h_Data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_D_001>>(
                this.Unknown_10h_Pointer, // offset
                this.Count1
            );
            this.Bones = reader.ReadBlockAt<ResourceSimpleArray<Bone_GTA5_pc>>(
                this.BonesPointer, // offset
                this.BonesCount
            );
            this.Unknown_28h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>(
                this.Unknown_28h_Pointer, // offset
                this.BonesCount
            );
            this.Unknown_30h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>(
                this.Unknown_30h_Pointer, // offset
                this.BonesCount
            );
            this.Unknown_38h_Data = reader.ReadBlockAt<ResourceSimpleArray<ushort_r>>(
                this.Unknown_38h_Pointer, // offset
                this.BonesCount
            );
            this.Unknown_40h_Data = reader.ReadBlockAt<ResourceSimpleArray<ushort_r>>(
                this.Unknown_40h_Pointer, // offset
                this.Count4
            );
        }