コード例 #1
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.FiltersPointer = reader.ReadUInt64();
            this.FiltersCount1 = reader.ReadUInt16();
            this.FiltersCount2 = reader.ReadUInt16();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.Hashes = reader.ReadBlockAt<ResourceSimpleArray<uint_r>>(
                this.HashesPointer, // offset
                this.HashesCount1
            );
            this.Filters = reader.ReadBlockAt<ResourcePointerArray64<Filter_GTA5_pc>>(
                this.FiltersPointer, // offset
                this.FiltersCount1
            );
        }
コード例 #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.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
            );
        }
コード例 #3
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
            );
        }
コード例 #4
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
            );
        }
コード例 #5
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.p2 = reader.ReadUInt64();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.ClipsPointer = reader.ReadUInt64();
            this.c1 = reader.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.Animations = reader.ReadBlockAt<AnimationMap>(
                this.p2 // offset
            );
            this.Clips = reader.ReadBlockAt<ResourcePointerArray64<ClipEntry_GTA5_pc>>(
                this.ClipsPointer, // offset
                this.c1
            );
        }
コード例 #6
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.TextureDictionaryPointer = reader.ReadUInt64();
            this.ShadersPointer = reader.ReadUInt64();
            this.ShadersCount1 = reader.ReadUInt16();
            this.ShadersCount2 = reader.ReadUInt16();
            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();

            // read reference data
            this.TextureDictionary = reader.ReadBlockAt<TextureDictionary_GTA5_pc>(
                this.TextureDictionaryPointer // offset
            );
            this.Shaders = reader.ReadBlockAt<ResourcePointerArray64<ShaderFX_GTA5_pc>>(
                this.ShadersPointer, // offset
                this.ShadersCount1
            );
        }
コード例 #7
0
ファイル: Unknown_F_008.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_Pointer = reader.ReadUInt64();
            this.Unknown_28h_Pointer = reader.ReadUInt64();
            this.Unknown_30h = reader.ReadUInt32();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.Unknown_18h_Data = reader.ReadBlockAt<Unknown_F_007>(
                this.Unknown_18h_Pointer // offset
            );
            this.Unknown_20h_Data = reader.ReadBlockAt<Unknown_F_007>(
                this.Unknown_20h_Pointer // offset
            );
            this.Unknown_28h_Data = reader.ReadBlockAt<Unknown_F_007>(
                this.Unknown_28h_Pointer // offset
            );
        }
コード例 #8
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.p1          = reader.ReadUInt64();
            this.c1          = reader.ReadUInt16();
            this.c2          = reader.ReadUInt16();
            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();

            // read reference data
            this.p1data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_CL_004> >(
                this.p1, // offset
                this.c1
                );
        }
コード例 #9
0
ファイル: TextureDX11.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.Width       = reader.ReadUInt16();
            this.Height      = reader.ReadUInt16();
            this.Depth       = reader.ReadUInt16();
            this.Stride      = reader.ReadUInt16();
            this.Format      = reader.ReadUInt32();
            this.Unknown_5Ch = reader.ReadByte();
            this.Levels      = reader.ReadByte();
            this.Unknown_5Eh = reader.ReadUInt16();
            this.Unknown_60h = reader.ReadUInt32();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();
            this.DataPointer = reader.ReadUInt64();
            this.Unknown_78h = reader.ReadUInt32();
            this.Unknown_7Ch = reader.ReadUInt32();
            this.Unknown_80h = reader.ReadUInt32();
            this.Unknown_84h = reader.ReadUInt32();
            this.Unknown_88h = reader.ReadUInt32();
            this.Unknown_8Ch = reader.ReadUInt32();

            // read reference data
            this.Data = reader.ReadBlockAt <TextureData_GTA5_pc>(
                this.DataPointer, // offset
                this.Format,
                this.Width,
                this.Height,
                this.Levels,
                this.Stride
                );
        }
コード例 #10
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
            );
        }
コード例 #11
0
ファイル: ShaderGroup.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.TextureDictionaryPointer = reader.ReadUInt64();

            // HACK:    read texture dictionary first!
            //          this will make sure ShaderParameter Data will point to the already read TextureDX11
            //          instead of creating duplicated Texture blocks

            // TODO:    edit ResourceDataReader block pool to handle these scenarios!
            //          see https://github.com/carmineos/gta-toolkit/issues/11

            // read reference data
            this.TextureDictionary = reader.ReadBlockAt <PgDictionary64 <TextureDX11> >(
                this.TextureDictionaryPointer // offset
                );

            this.Shaders     = reader.ReadBlock <ResourcePointerList64 <ShaderFX> >();
            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();
        }
コード例 #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)
        {
            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
            );
        }
コード例 #14
0
ファイル: Unknown_CL_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.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.p1 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            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();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_CL_004>>(
                this.p1, // offset
                this.c1
            );
        }
コード例 #15
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
            );
        }
コード例 #16
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
                );
        }
コード例 #17
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.p1 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            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.emb1 = reader.ReadBlock<Unknown_P_018>();
            this.emb2 = reader.ReadBlock<Unknown_P_018>();
            this.emb3 = reader.ReadBlock<Unknown_P_018>();
            this.Unknown_1E0h = reader.ReadUInt32();
            this.Unknown_1E4h = reader.ReadUInt32();
            this.Unknown_1E8h = reader.ReadUInt32();
            this.Unknown_1ECh = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_P_018>>(
                this.p1, // offset
                this.c1
            );
        }
コード例 #18
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.emb1         = reader.ReadBlock <Unknown_P_018>();
            this.emb2         = reader.ReadBlock <Unknown_P_018>();
            this.emb3         = reader.ReadBlock <Unknown_P_018>();
            this.emb4         = reader.ReadBlock <Unknown_P_018>();
            this.Unknown_258h = reader.ReadUInt32();
            this.Unknown_25Ch = reader.ReadUInt32();
            this.pref         = reader.ReadUInt64();
            this.refcnt1      = reader.ReadUInt16();
            this.refcnt2      = reader.ReadUInt16();
            this.Unknown_26Ch = reader.ReadUInt32();
            this.Unknown_270h = reader.ReadUInt32();
            this.Unknown_274h = reader.ReadUInt32();
            this.Unknown_278h = reader.ReadUInt32();
            this.Unknown_27Ch = reader.ReadUInt32();

            // read reference data
            this.refs = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_018> >(
                this.pref, // offset
                this.refcnt2
                );
        }
コード例 #19
0
ファイル: Property.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.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.NameHash          = reader.ReadUInt32();
            this.Unknown_1Ch       = reader.ReadUInt32();
            this.AttributesPointer = reader.ReadUInt64();
            this.AttributesCount1  = reader.ReadUInt16();
            this.AttributesCount2  = reader.ReadUInt16();
            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();

            // read reference data
            this.Attributes = reader.ReadBlockAt <ResourcePointerArray64 <PropertyAttribute> >(
                this.AttributesPointer, // offset
                this.AttributesCount1
                );
        }
コード例 #20
0
ファイル: Bone.cs プロジェクト: xchgrbprsp/gta-toolkit
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.RotationX    = reader.ReadSingle();
            this.RotationY    = reader.ReadSingle();
            this.RotationZ    = reader.ReadSingle();
            this.RotationW    = reader.ReadSingle();
            this.TranslationX = reader.ReadSingle();
            this.TranslationY = reader.ReadSingle();
            this.TranslationZ = reader.ReadSingle();
            this.Unknown_1Ch  = reader.ReadUInt32();
            this.Unknown_20h  = reader.ReadSingle();
            this.Unknown_24h  = reader.ReadSingle();
            this.Unknown_28h  = reader.ReadSingle();
            this.Unknown_2Ch  = reader.ReadSingle();
            this.Unknown_30h  = reader.ReadUInt32();
            this.Unknown_34h  = reader.ReadUInt32();
            this.NamePointer  = reader.ReadUInt64();
            this.Unknown_40h  = reader.ReadUInt16();
            this.Unknown_42h  = reader.ReadUInt16();
            this.Id           = reader.ReadUInt16();
            this.Unknown_46h  = reader.ReadUInt16();
            this.Unknown_48h  = reader.ReadUInt32();
            this.Unknown_4Ch  = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
        }
コード例 #21
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.NamePointer = reader.ReadUInt64();
            this.Unknown_40h = reader.ReadUInt32();
            this.Unknown_44h = reader.ReadUInt32();
            this.Unknown_48h = reader.ReadUInt32();
            this.Unknown_4Ch = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
        }
コード例 #22
0
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            int numElements = Convert.ToInt32(parameters[0]);

            // read structure data
            data_pointers = new List <ulong>();
            for (int i = 0; i < numElements; i++)
            {
                data_pointers.Add(reader.ReadUInt64());
            }

            foreach (var dp in data_pointers)
            {
                if (dp == 0)
                {
                }
            }

            // read reference data
            data_items = new List <T>();
            for (int i = 0; i < numElements; i++)
            {
                data_items.Add(
                    reader.ReadBlockAt <T>(data_pointers[i])
                    );
            }
        }
コード例 #23
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.p1          = reader.ReadUInt64();
            this.c1          = reader.ReadUInt16();
            this.c2          = reader.ReadUInt16();
            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.emb1        = reader.ReadBlock <Unknown_P_018>();
            this.Unknown_C0h = reader.ReadUInt32();
            this.Unknown_C4h = reader.ReadUInt32();
            this.Unknown_C8h = reader.ReadUInt32();
            this.Unknown_CCh = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_018> >(
                this.p1, // offset
                this.c1
                );
        }
コード例 #24
0
        /// <summary>
        /// Reads the data block.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            var numEl = (ResourceSimpleArray <uint_r>)parameters[1];

            ptr_list = new List <ulong>();
            for (int i = 0; i < numEl.Count; i++)
            {
                ptr_list.Add(reader.ReadUInt64());
            }

            for (int i = 0; i < numEl.Count; i++)
            {
                var xarr = reader.ReadBlockAt <ResourceSimpleArray <T> >(ptr_list[i], (uint)numEl[i]);
                Data.Add(xarr);
            }

            //int numElements = Convert.ToInt32(parameters[0]);

            //Data = new List<T>();
            //for (int i = 0; i < numElements; i++)
            //{
            //    T item = reader.ReadBlock<T>();
            //    Data.Add(item);
            //}
        }
コード例 #25
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.ReadBlock <ResourcePointerList64 <Unknown_E_001> >();
            this.Unknown_30h = reader.ReadBlock <ResourceSimpleList64 <uint_r> >();
            this.Unknown_40h = reader.ReadBlock <ResourceSimpleList64 <Unknown_E_002> >();
            this.Unknown_50h = reader.ReadBlock <ResourceSimpleList64 <uint_r> >();
            this.NamePointer = reader.ReadUInt64();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();
            this.Unknown_70h = reader.ReadUInt32();
            this.Unknown_74h = reader.ReadUInt32();
            this.len         = reader.ReadUInt16();
            this.Unknown_7Ah = reader.ReadUInt16();
            this.Unknown_7Ch = reader.ReadUInt32();
            this.Unknown_80h = reader.ReadUInt32();
            this.Unknown_84h = reader.ReadUInt32();
            this.Unknown_88h = reader.ReadUInt32();
            this.Unknown_8Ch = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
        }
コード例 #26
0
ファイル: Struct_20.cs プロジェクト: snakewiz/gta-toolkit
        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_Pointer  = reader.ReadUInt64();
            this.Unknown_10h_Pointer = reader.ReadUInt64();
            this.Unknown_18h_Pointer = reader.ReadUInt64();
            this.Unknown_20h_Pointer = reader.ReadUInt64();
            this.Unknown_28h         = reader.ReadUInt64();
            this.Unknown_30h         = reader.ReadUInt64();
            this.Unknown_38h         = reader.ReadUInt32();
            this.Unknown_3Ch         = reader.ReadUInt32();
            this.Unknown_40h         = reader.ReadUInt32();
            this.Unknown_44h         = reader.ReadUInt32();
            this.Unknown_48h         = reader.ReadUInt64();
            this.Unknown_50h         = reader.ReadUInt32();
            this.Unknown_54h         = reader.ReadUInt32();
            this.Unknown_58h         = reader.ReadUInt64();
            this.Unknown_60h         = reader.ReadUInt64();
            this.Unknown_68h         = reader.ReadUInt64();

            // read reference data
            this.Unknown_8h_Data = reader.ReadBlockAt <ResourcePointerArray <Struct_22> >(Unknown_8h_Pointer, Unknown_54h);
        }
コード例 #27
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
                );
        }
コード例 #28
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
            );
        }
コード例 #29
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.ClassInfosPointer = reader.ReadUInt64();
            this.p2 = reader.ReadUInt64();
            this.DataBlocksPointer = reader.ReadUInt64();
            this.NamePointer       = reader.ReadUInt64();
            this.p5 = reader.ReadUInt64();
            this.ClassInfosCount = reader.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            this.DataBlocksCount = reader.ReadUInt16();
            this.Unknown_4Eh     = reader.ReadUInt16();
            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();

            // read reference data
            this.ClassInfos = reader.ReadBlockAt <ResourceSimpleArray <MetaClassInfo_GTA5_pc> >(
                this.ClassInfosPointer, // offset
                this.ClassInfosCount
                );
            this.p2data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_META_002> >(
                this.p2, // offset
                this.c2
                );
            this.DataBlocks = reader.ReadBlockAt <ResourceSimpleArray <MetaDataBlock_GTA5_pc> >(
                this.DataBlocksPointer, // offset
                this.DataBlocksCount
                );
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.p5data = reader.ReadBlockAt <Unknown_META_001>(
                this.p5 // offset
                );
        }
コード例 #30
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.ReadBlock <RAGE_Matrix4>();
            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>(
                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
                );
        }
コード例 #31
0
ファイル: RAGE_Pointer.cs プロジェクト: snakewiz/gta-toolkit
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Pointer = reader.ReadUInt64();

            // read reference data
            this.Data = reader.ReadBlockAt <T>(this.Pointer);
        }
コード例 #32
0
ファイル: MetaFile.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.Unknown_10h           = reader.ReadInt32();
            this.Unknown_14h           = reader.ReadInt16();
            this.HasUselessData        = reader.ReadByte();
            this.Unknown_17h           = reader.ReadByte();
            this.Unknown_18h           = reader.ReadInt32();
            this.RootBlockIndex        = reader.ReadInt32();
            this.StructureInfosPointer = reader.ReadInt64();
            this.EnumInfosPointer      = reader.ReadInt64();
            this.DataBlocksPointer     = reader.ReadInt64();
            this.NamePointer           = reader.ReadInt64();
            this.UselessPointer        = reader.ReadInt64();
            this.StructureInfosCount   = reader.ReadInt16();
            this.EnumInfosCount        = reader.ReadInt16();
            this.DataBlocksCount       = reader.ReadInt16();
            this.Unknown_4Eh           = reader.ReadInt16();
            this.Unknown_50h           = reader.ReadInt32();
            this.Unknown_54h           = reader.ReadInt32();
            this.Unknown_58h           = reader.ReadInt32();
            this.Unknown_5Ch           = reader.ReadInt32();
            this.Unknown_60h           = reader.ReadInt32();
            this.Unknown_64h           = reader.ReadInt32();
            this.Unknown_68h           = reader.ReadInt32();
            this.Unknown_6Ch           = reader.ReadInt32();

            // read reference data
            this.StructureInfos = reader.ReadBlockAt <ResourceSimpleArray <StructureInfo> >(
                (ulong)this.StructureInfosPointer, // offset
                this.StructureInfosCount
                );
            this.EnumInfos = reader.ReadBlockAt <ResourceSimpleArray <EnumInfo> >(
                (ulong)this.EnumInfosPointer, // offset
                this.EnumInfosCount
                );
            this.DataBlocks = reader.ReadBlockAt <ResourceSimpleArray <DataBlock> >(
                (ulong)this.DataBlocksPointer, // offset
                this.DataBlocksCount
                );
            this.Name = reader.ReadBlockAt <string_r>(
                (ulong)this.NamePointer // offset
                );
        }
コード例 #33
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
            );
        }
コード例 #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.ReadUInt32();
            this.Unknown_4h  = reader.ReadUInt32();
            this.p1          = reader.ReadUInt64();
            this.p2          = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();

            // read reference data
            this.Animation = reader.ReadBlockAt <Animation>(
                this.p1 // offset
                );
            this.NextEntry = reader.ReadBlockAt <AnimationMapEntry>(
                this.p2 // offset
                );
        }
コード例 #35
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.Unknown_4h = reader.ReadUInt32();
            this.ClipPointer = reader.ReadUInt64();
            this.NextPointer = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();

            // read reference data
            this.Clip = reader.ReadBlockAt<Clip_GTA5_pc>(
                this.ClipPointer // offset
            );
            this.Next = reader.ReadBlockAt<ClipEntry_GTA5_pc>(
                this.NextPointer // offset
            );
        }
コード例 #36
0
ファイル: Unknown_CL_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.p1 = reader.ReadUInt64();
            this.p2 = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();

            // read reference data
            this.Data = reader.ReadBlockAt<Unknown_CL_003>(
                this.p1 // offset
            );
            this.Next = reader.ReadBlockAt<Unknown_CL_002>(
                this.p2 // offset
            );
        }
コード例 #37
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.LightAttributes = reader.ReadBlock <ResourceSimpleList64 <LightAttributes> >();
            this.Unknown_C0h     = reader.ReadUInt64();
            this.BoundPointer    = reader.ReadUInt64();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.Bound = reader.ReadBlockAt <Bound>(
                this.BoundPointer // offset
                );
        }
コード例 #38
0
ファイル: Unknown_P_012.cs プロジェクト: snakewiz/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.ReadVector4();
            this.NamePointer = reader.ReadUInt64();
            this.DrawablePointer = reader.ReadUInt64();
            this.NameHash = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt64();

            // read reference data
            this.Name = reader.ReadBlockAt<string_r>(
                this.NamePointer // offset
            );
            this.Drawable = reader.ReadBlockAt<Drawable>(
                this.DrawablePointer // offset
            );
        }
コード例 #39
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.DataPointer = reader.ReadUInt64();
            this.NextPointer = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();

            // read reference data
            this.Data = reader.ReadBlockAt <Unknown_CL_003>(
                this.DataPointer // offset
                );
            this.Next = reader.ReadBlockAt <Unknown_CL_002>(
                this.NextPointer // offset
                );
        }
コード例 #40
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.Unknown_4h  = reader.ReadUInt32();
            this.ClipPointer = reader.ReadUInt64();
            this.NextPointer = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();

            // read reference data
            this.Clip = reader.ReadBlockAt <Clip_GTA5_pc>(
                this.ClipPointer // offset
                );
            this.Next = reader.ReadBlockAt <ClipMapEntry_GTA5_pc>(
                this.NextPointer // offset
                );
        }
コード例 #41
0
ファイル: AnimationEntry.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.p1 = reader.ReadUInt64();
            this.p2 = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();

            // read reference data
            this.Animation = reader.ReadBlockAt<Animation>(
                this.p1 // offset
            );
            this.NextEntry = reader.ReadBlockAt<AnimationEntry>(
                this.p2 // offset
            );
        }
コード例 #42
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.ShaderGroupPointer           = reader.ReadUInt64();
            this.SkeletonPointer              = reader.ReadUInt64();
            this.BoundingCenter               = reader.ReadBlock <RAGE_Vector3>();
            this.BoundingSphereRadius         = reader.ReadSingle();
            this.BoundingBoxMin               = reader.ReadBlock <RAGE_Vector4>();
            this.BoundingBoxMax               = reader.ReadBlock <RAGE_Vector4>();
            this.DrawableModelsHighPointer    = reader.ReadUInt64();
            this.DrawableModelsMediumPointer  = reader.ReadUInt64();
            this.DrawableModelsLowPointer     = reader.ReadUInt64();
            this.DrawableModelsVeryLowPointer = reader.ReadUInt64();
            this.Unknown_70h            = reader.ReadSingle();
            this.Unknown_74h            = reader.ReadSingle();
            this.Unknown_78h            = reader.ReadSingle();
            this.Unknown_7Ch            = reader.ReadSingle();
            this.Unknown_80h            = reader.ReadUInt32();
            this.Unknown_84h            = reader.ReadUInt32();
            this.Unknown_88h            = reader.ReadUInt32();
            this.Unknown_8Ch            = reader.ReadUInt32();
            this.JointsPointer          = reader.ReadUInt64();
            this.Unknown_98h            = reader.ReadUInt32();
            this.Unknown_9Ch            = reader.ReadUInt32();
            this.DrawableModelsXPointer = reader.ReadUInt64();

            // read reference data
            this.ShaderGroup = reader.ReadBlockAt <ShaderGroup_GTA5_pc>(
                this.ShaderGroupPointer // offset
                );
            this.Skeleton = reader.ReadBlockAt <Skeleton_GTA5_pc>(
                this.SkeletonPointer // offset
                );
            this.DrawableModelsHigh = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModelsHighPointer // offset
                );
            this.DrawableModelsMedium = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModelsMediumPointer // offset
                );
            this.DrawableModelsLow = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModelsLowPointer // offset
                );
            this.DrawableModelsVeryLow = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModelsVeryLowPointer // offset
                );
            this.Joints = reader.ReadBlockAt <Joints_GTA5_pc>(
                this.JointsPointer // offset
                );
            this.DrawableModelsX = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModelsXPointer // offset
                );
        }
コード例 #43
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.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();
            this.p2          = reader.ReadUInt64();
            this.p3          = reader.ReadUInt64();
            this.p4          = reader.ReadUInt64();
            this.p5          = reader.ReadUInt64();
            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();

            // read reference data
            this.p1data = reader.ReadBlockAt <Unknown_P_009>(
                this.p1 // offset
                );
            this.p2data = reader.ReadBlockAt <string_r>(
                this.p2 // offset
                );
            this.p3data = reader.ReadBlockAt <string_r>(
                this.p3 // offset
                );
            this.p4data = reader.ReadBlockAt <EffectRule_GTA5_pc>(
                this.p4 // offset
                );
            this.p5data = reader.ReadBlockAt <ParticleRule_GTA5_pc>(
                this.p5 // offset
                );
        }
コード例 #44
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.UnkPtr_20h  = reader.ReadUInt64();
            this.UnkPtr_28h  = reader.ReadUInt64();
            this.UnkPtr_30h  = reader.ReadUInt64();
            this.UnkPtr_38h  = reader.ReadUInt64();
            this.UnkPtr_40h  = reader.ReadUInt64();
            this.cnt1        = reader.ReadUInt16();
            this.cnt3        = reader.ReadUInt16();
            this.cnt2        = reader.ReadUInt16();
            this.Unknown_4Eh = reader.ReadUInt16();
            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();

            // read reference data
            this.UnkPtr_20hdata = reader.ReadBlockAt <ResourceSimpleArray <Unknown_T_003> >(
                this.UnkPtr_20h, // offset
                this.cnt1
                );
            this.UnkPtr_28hdata = reader.ReadBlockAt <ResourceSimpleArray <Unknown_T_002> >(
                this.UnkPtr_28h, // offset
                this.cnt3
                );
            this.UnkPtr_30hdata = reader.ReadBlockAt <ResourceSimpleArray <Unknown_T_004> >(
                this.UnkPtr_30h, // offset
                this.cnt2
                );
            this.UnkPtr_40hdata = reader.ReadBlockAt <Unknown_T_001>(
                this.UnkPtr_40h // offset
                );
        }
コード例 #45
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.ptr2        = reader.ReadUInt64();
            this.ptr3        = reader.ReadUInt64();
            this.ptr4        = reader.ReadUInt64();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();
            this.ptr5        = reader.ReadUInt64();
            this.c1          = reader.ReadUInt16();
            this.c2          = reader.ReadUInt16();
            this.c3          = 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();

            // read reference data
            this.ptr2data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_001> >(
                this.ptr2, // offset
                this.c1
                );
            this.ptr3data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_002> >(
                this.ptr3, // offset
                this.c2
                );
            this.ptr4data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_003> >(
                this.ptr4, // offset
                this.c3
                );
            this.ptr5data = reader.ReadBlockAt <Unknown_M_004>(
                this.ptr5 // offset
                );
        }
コード例 #46
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.BoneMap         = reader.ReadBlock <HashMap>();
            this.BoneDataPointer = reader.ReadUInt64();
            this.InverseBindPoseMatricesPointer = reader.ReadUInt64();
            this.DefaultPoseMatricesPointer     = reader.ReadUInt64();
            this.ParentIndicesPointer           = reader.ReadUInt64();
            this.ChildrenIndicesPointer         = reader.ReadUInt64();
            this.Unknown_48h          = reader.ReadUInt64();
            this.Unknown_50h          = reader.ReadUInt32();
            this.Unknown_54h          = reader.ReadUInt32();
            this.DataCRC              = reader.ReadUInt32();
            this.Unknown_5Ch          = reader.ReadUInt16();
            this.BonesCount           = reader.ReadUInt16();
            this.ChildrenIndicesCount = reader.ReadUInt16();
            this.Unknown_62h          = reader.ReadUInt16();
            this.Unknown_64h          = reader.ReadUInt32();
            this.Unknown_68h          = reader.ReadUInt64();

            // read reference data
            this.BoneData = reader.ReadBlockAt <BoneData>(
                this.BoneDataPointer - 16, // offset
                this.BonesCount
                );
            this.InverseBindPoseMatrices = reader.ReadBlockAt <SimpleArray <Matrix4x4> >(
                this.InverseBindPoseMatricesPointer, // offset
                this.BonesCount
                );
            this.DefaultPoseMatrices = reader.ReadBlockAt <SimpleArray <Matrix4x4> >(
                this.DefaultPoseMatricesPointer, // offset
                this.BonesCount
                );
            this.ParentIndices = reader.ReadBlockAt <SimpleArray <short> >(
                this.ParentIndicesPointer, // offset
                this.BonesCount
                );
            this.ChildrenIndices = reader.ReadBlockAt <SimpleArray <short> >(
                this.ChildrenIndicesPointer, // offset
                this.ChildrenIndicesCount
                );
        }
コード例 #47
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
            );
        }
コード例 #48
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
            );
        }
コード例 #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.ShaderGroupPointer     = reader.ReadUInt64();
            this.SkeletonPointer        = reader.ReadUInt64();
            this.Unknown_20h            = reader.ReadBlock <RAGE_Vector4>();
            this.Unknown_30h            = reader.ReadBlock <RAGE_Vector4>();
            this.Unknown_40h            = reader.ReadBlock <RAGE_Vector4>();
            this.DrawableModels1Pointer = reader.ReadUInt64();
            this.DrawableModels2Pointer = reader.ReadUInt64();
            this.DrawableModels3Pointer = reader.ReadUInt64();
            this.DrawableModels4Pointer = reader.ReadUInt64();
            this.Unknown_70h            = reader.ReadUInt32();
            this.Unknown_74h            = reader.ReadUInt32();
            this.Unknown_78h            = reader.ReadUInt32();
            this.Unknown_7Ch            = reader.ReadUInt32();
            this.Unknown_80h            = reader.ReadUInt32();
            this.Unknown_84h            = reader.ReadUInt32();
            this.Unknown_88h            = reader.ReadUInt32();
            this.Unknown_8Ch            = reader.ReadUInt32();
            this.Unknown_90h_Pointer    = reader.ReadUInt64();
            this.Unknown_98h            = reader.ReadUInt32();
            this.Unknown_9Ch            = reader.ReadUInt32();
            this.DrawableModelsXPointer = reader.ReadUInt64();

            // read reference data
            this.ShaderGroup = reader.ReadBlockAt <ShaderGroup_GTA5_pc>(
                this.ShaderGroupPointer // offset
                );
            this.Skeleton = reader.ReadBlockAt <Skeleton_GTA5_pc>(
                this.SkeletonPointer // offset
                );
            this.DrawableModels1 = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModels1Pointer // offset
                );
            this.DrawableModels2 = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModels2Pointer // offset
                );
            this.DrawableModels3 = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModels3Pointer // offset
                );
            this.DrawableModels4 = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModels4Pointer // offset
                );
            this.Unknown_90h_Data = reader.ReadBlockAt <Unknown_D_002>(
                this.Unknown_90h_Pointer // offset
                );
            this.DrawableModelsX = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >(
                this.DrawableModelsXPointer // offset
                );
        }
コード例 #50
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.PagesInfoPointer = reader.ReadUInt64();

            // read reference data
            this.PagesInfo = reader.ReadBlockAt<PagesInfo_GTA5_pc>(
                this.PagesInfoPointer // offset
            );
        }
コード例 #51
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
            );
        }
コード例 #52
0
ファイル: Unknown_D_001.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_Pointer = reader.ReadUInt64();

            // read reference data
            this.p1data = reader.ReadBlockAt<Unknown_D_001>(
                this.Unknown_8h_Pointer // offset
            );
        }
コード例 #53
0
ファイル: Unknown_P_022.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.p1 = reader.ReadUInt64();
            this.p2 = reader.ReadUInt64();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<string_r>(
                this.p1 // offset
            );
            this.p2data = reader.ReadBlockAt<DrawableBase_GTA5_pc>(
                this.p2 // offset
            );
        }
コード例 #54
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
            );
        }
コード例 #55
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.p0 = reader.ReadUInt64();
            this.p1 = reader.ReadUInt64();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();

            // read reference data
            this.p0data = reader.ReadBlockAt<Texture_GTA5_pc>(
                this.p0 // offset
            );
            this.p1data = reader.ReadBlockAt<string_r>(
                this.p1 // offset
            );
        }
コード例 #56
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
            );
        }
コード例 #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 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");
        }
コード例 #58
0
ファイル: Unknown_P_012.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.Unknown_8h = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<string_r>(
                this.p1 // offset
            );
        }
コード例 #59
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.PhysicsLOD1Pointer = reader.ReadUInt64();
			this.PhysicsLOD2Pointer = reader.ReadUInt64();
			this.PhysicsLOD3Pointer = reader.ReadUInt64();
			this.Unknown_28h = reader.ReadUInt32();
			this.Unknown_2Ch = reader.ReadUInt32();

			// read reference data
			this.PhysicsLOD1 = reader.ReadBlockAt<FragPhysicsLOD_GTA5_pc>(
				this.PhysicsLOD1Pointer // offset
			);
			this.PhysicsLOD2 = reader.ReadBlockAt<FragPhysicsLOD_GTA5_pc>(
				this.PhysicsLOD2Pointer // offset
			);
			this.PhysicsLOD3 = reader.ReadBlockAt<FragPhysicsLOD_GTA5_pc>(
				this.PhysicsLOD3Pointer // offset
			);
		}
コード例 #60
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
            );
        }