/// <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
            );
        }
Beispiel #2
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
            );
        }
Beispiel #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.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
            );
        }
        /// <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
            );
        }
Beispiel #5
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_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
            );
        }
Beispiel #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.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
            );
        }
        /// <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
            );
        }
        /// <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
            );
        }
        /// <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();
            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();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_P_018>>(
                this.p1, // offset
                this.c1
            );
        }
        /// <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
            );
        }
        public uint Unknown_4Ch; // 0x00000000

        /// <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.ObjectsCount1 = reader.ReadUInt16();
            this.ObjectsCount2 = reader.ReadUInt16();
            this.Unknown_24h = reader.ReadUInt32();
            this.TypesHash = 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();
        }
        /// <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.emb4 = reader.ReadBlock<Unknown_P_018>();
            this.emb5 = reader.ReadBlock<Unknown_P_018>();
            this.emb6 = reader.ReadBlock<Unknown_P_018>();
            this.emb7 = reader.ReadBlock<Unknown_P_018>();
            this.emb8 = reader.ReadBlock<Unknown_P_018>();
            this.emb9 = reader.ReadBlock<Unknown_P_018>();
            this.Unknown_540h = reader.ReadUInt32();
            this.Unknown_544h = reader.ReadUInt32();
            this.Unknown_548h = reader.ReadUInt32();
            this.Unknown_54Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_P_018>>(
                this.p1, // offset
                this.c1
            );
        }
Beispiel #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.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
            );
        }
        public uint Unknown_4h; // 0x00000000

        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.BlockIndex = reader.ReadUInt16();
            this.OffsetDiv16 = reader.ReadUInt16();
            this.Unknown_4h = reader.ReadUInt32();
        }
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.X = reader.ReadUInt16();
     this.Y = reader.ReadUInt16();
     this.Z = reader.ReadUInt16();
 }
Beispiel #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.ReadUInt16();
     this.Unknown_2h = reader.ReadUInt16();
     this.Unknown_4h = reader.ReadUInt32();
 }
Beispiel #17
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
            );
        }
Beispiel #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_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
            );
        }
 /// <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.DataOffset = reader.ReadUInt32();
     this.DataType = reader.ReadUInt16();
     this.Unknown_Ah = reader.ReadUInt16();
     this.RefNameHash = reader.ReadUInt32();
 }
Beispiel #20
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
            );
        }
Beispiel #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.ReadUInt16();

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

            Data = reader.ReadBlock<ResourceSimpleArray<byte_r>>(DataLength);
        }
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.PositionX = reader.ReadSingle();
     this.PositionY = reader.ReadSingle();
     this.PositionZ = reader.ReadSingle();
     this.Unknown_Ch = reader.ReadUInt16();
     this.Unknown_Eh = reader.ReadUInt16();
     this.Unknown_10h = reader.ReadUInt16();
     this.Unknown_12h = reader.ReadUInt16();
 }
 /// <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.len1 = reader.ReadUInt32();
     this.len2 = reader.ReadUInt32();
     this.len3 = reader.ReadUInt16();
     this.Unknown_Eh = reader.ReadUInt16();
     this.Data1 = reader.ReadBytes((int)len1);
     this.Data2 = reader.ReadBytes((int)len2);
     this.Data3 = reader.ReadBytes((int)len3);
 }
Beispiel #24
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.ReadUInt16();
     this.Unknown_12h = reader.ReadUInt16();
     this.Unknown_14h = reader.ReadUInt16();
     this.Unknown_16h = reader.ReadUInt16();
     this.Unknown_18h = reader.ReadUInt32();
 }
        /// <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.VertexStride = reader.ReadUInt16();
            this.Unknown_Ah   = reader.ReadUInt16();
            this.Unknown_Ch   = reader.ReadUInt32();
            this.DataPointer1 = reader.ReadUInt64();
            this.VertexCount  = reader.ReadUInt32();
            this.Unknown_1Ch  = reader.ReadUInt32();
            this.DataPointer2 = reader.ReadUInt64();
            this.Unknown_28h  = reader.ReadUInt32();
            this.Unknown_2Ch  = reader.ReadUInt32();
            this.InfoPointer  = 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.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();

            // read reference data
            this.Info = reader.ReadBlockAt <VertexDeclaration_GTA5_pc>(
                this.InfoPointer // offset
                );
            this.Data1 = reader.ReadBlockAt <VertexData_GTA5_pc>(
                this.DataPointer1, // offset
                this.VertexStride,
                this.VertexCount,
                this.Info
                );
            this.Data2 = reader.ReadBlockAt <VertexData_GTA5_pc>(
                this.DataPointer2, // offset
                this.VertexStride,
                this.VertexCount,
                this.Info
                );
        }
        /// <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.VertexStride = reader.ReadUInt16();
            this.Unknown_Ah = reader.ReadUInt16();
            this.Unknown_Ch = reader.ReadUInt32();
            this.DataPointer1 = reader.ReadUInt64();
            this.VertexCount = reader.ReadUInt32();
            this.Unknown_1Ch = reader.ReadUInt32();
            this.DataPointer2 = reader.ReadUInt64();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = reader.ReadUInt32();
            this.InfoPointer = 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.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();

            // read reference data
            this.Info = reader.ReadBlockAt<VertexDeclaration_GTA5_pc>(
                this.InfoPointer // offset
            );
            this.Data1 = reader.ReadBlockAt<VertexData_GTA5_pc>(
                this.DataPointer1, // offset
                this.VertexStride,
                this.VertexCount,
                this.Info
            );
            this.Data2 = reader.ReadBlockAt<VertexData_GTA5_pc>(
                this.DataPointer2, // offset
                this.VertexStride,
                this.VertexCount,
                this.Info
            );
        }
Beispiel #27
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Id         = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt16();
            this.Count      = reader.ReadUInt16();
            this.ChunkSize  = reader.ReadUInt32();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Chunk      = reader.ReadBytes((int)ChunkSize - 16);

            // TODO:    rework this to avoid reading data twice
            //          Design a packed data class maybe?
            UnpackChunk(reader);
        }
Beispiel #28
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.ReadUInt16();
            this.c2         = reader.ReadUInt16();
            this.Unknown_Ch = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_CL_002> >(
                this.p1, // offset
                this.c1
                );
        }
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.EntriesPointer  = reader.ReadUInt64();
            this.EntriesCount    = reader.ReadUInt16();
            this.EntriesCapacity = reader.ReadUInt16();
            reader.Position     += 4;

            // read reference data
            this.Entries = reader.ReadBlockAt <ResourceSimpleArray <T> >(
                this.EntriesPointer, // offset
                this.EntriesCount
                );
        }
Beispiel #30
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.DataLength  = 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.ReadUInt16();
     this.Unknown_1Eh = reader.ReadUInt16();
     this.Data        = reader.ReadBytes((int)DataLength);
 }
Beispiel #31
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.PropertyEntriesPointer    = reader.ReadUInt64();
            this.PropertyEntriesCount      = reader.ReadUInt16();
            this.PropertyEntriesTotalCount = reader.ReadUInt16();
            this.Unknown_Ch = reader.ReadUInt32();

            // read reference data
            this.Properties = reader.ReadBlockAt <ResourcePointerArray64 <PropertyMapEntry> >(
                this.PropertyEntriesPointer, // offset
                this.PropertyEntriesCount
                );
        }
Beispiel #32
0
        public uint Unknown_A4h; // 0x00000000

        /// <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.Position               = reader.ReadVector3();
            this.Unknown_14h            = reader.ReadUInt32();
            this.ColorR                 = reader.ReadByte();
            this.ColorG                 = reader.ReadByte();
            this.ColorB                 = reader.ReadByte();
            this.Flashiness             = reader.ReadByte();
            this.Intensity              = reader.ReadSingle();
            this.Flags                  = reader.ReadUInt32();
            this.BoneId                 = reader.ReadUInt16();
            this.Type                   = reader.ReadByte();
            this.GroupId                = reader.ReadByte();
            this.TimeFlags              = reader.ReadUInt32();
            this.Falloff                = reader.ReadSingle();
            this.FalloffExponent        = reader.ReadSingle();
            this.CullingPlaneNormal     = reader.ReadVector3();
            this.CullingPlaneOffset     = reader.ReadSingle();
            this.ShadowBlur             = reader.ReadByte();
            this.Unknown_45h            = reader.ReadByte();
            this.Unknown_46h            = reader.ReadUInt16();
            this.Unknown_48h            = reader.ReadUInt32();
            this.VolumeIntensity        = reader.ReadSingle();
            this.VolumeSizeScale        = reader.ReadSingle();
            this.VolumeOuterColorR      = reader.ReadByte();
            this.VolumeOuterColorG      = reader.ReadByte();
            this.VolumeOuterColorB      = reader.ReadByte();
            this.LightHash              = reader.ReadByte();
            this.VolumeOuterIntensity   = reader.ReadSingle();
            this.CoronaSize             = reader.ReadSingle();
            this.VolumeOuterExponent    = reader.ReadSingle();
            this.LightFadeDistance      = reader.ReadByte();
            this.ShadowFadeDistance     = reader.ReadByte();
            this.SpecularFadeDistance   = reader.ReadByte();
            this.VolumetricFadeDistance = reader.ReadByte();
            this.ShadowNearClip         = reader.ReadSingle();
            this.CoronaIntensity        = reader.ReadSingle();
            this.CoronaZBias            = reader.ReadSingle();
            this.Direction              = reader.ReadVector3();
            this.Tangent                = reader.ReadVector3();
            this.ConeInnerAngle         = reader.ReadSingle();
            this.ConeOuterAngle         = reader.ReadSingle();
            this.Extent                 = reader.ReadVector3();
            this.ProjectedTextureHash   = reader.ReadUInt32();
            this.Unknown_A4h            = reader.ReadUInt32();
        }
        public uint Unknown_BCh;  // 0x00000100

        /// <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.BoneId      = reader.ReadUInt16();
            this.Unknown_Ah  = reader.ReadUInt16();
            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.ReadSingle();
            this.Unknown_30h = reader.ReadUInt32();
            this.Unknown_34h = reader.ReadUInt32();
            this.Unknown_38h = reader.ReadUInt32();
            this.Unknown_3Ch = reader.ReadUInt32();
            this.Unknown_40h = reader.ReadSingle();
            this.Unknown_44h = reader.ReadUInt32();
            this.Unknown_48h = reader.ReadUInt32();
            this.Unknown_4Ch = reader.ReadUInt32();
            this.Unknown_50h = reader.ReadSingle();
            this.Unknown_54h = reader.ReadSingle();
            this.Unknown_58h = reader.ReadSingle();
            this.Min         = reader.ReadVector3();
            this.Max         = reader.ReadVector3();
            this.Unknown_74h = reader.ReadSingle();
            this.Unknown_78h = reader.ReadSingle();
            this.Unknown_7Ch = reader.ReadSingle();
            this.Unknown_80h = reader.ReadSingle();
            this.Unknown_84h = reader.ReadSingle();
            this.Unknown_88h = reader.ReadSingle();
            this.Unknown_8Ch = reader.ReadSingle();
            this.Unknown_90h = reader.ReadSingle();
            this.Unknown_94h = reader.ReadSingle();
            this.Unknown_98h = reader.ReadSingle();
            this.Unknown_9Ch = reader.ReadSingle();
            this.Unknown_A0h = reader.ReadSingle();
            this.Unknown_A4h = reader.ReadSingle();
            this.Unknown_A8h = reader.ReadSingle();
            this.Unknown_ACh = reader.ReadSingle();
            this.Unknown_B0h = reader.ReadSingle();
            this.Unknown_B4h = reader.ReadSingle();
            this.Unknown_B8h = reader.ReadSingle();
            this.Unknown_BCh = reader.ReadUInt32();
        }
Beispiel #34
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.ValuePointer = reader.ReadUInt64();
            this.ValueLength1 = reader.ReadUInt16();
            this.ValueLength2 = reader.ReadUInt16();
            this.Unknown_2Ch  = reader.ReadUInt32();

            // read reference data
            this.Value = reader.ReadBlockAt <string_r>(
                this.ValuePointer // offset
                );
        }
Beispiel #35
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.ReadVector4();
     this.Unknown_10h       = reader.ReadVector4();
     this.Unknown_20h       = reader.ReadVector4();
     this.Unknown_30h       = reader.ReadVector2();
     this.Unknown_38h       = reader.ReadVector2();
     this.VertexDeclaration = reader.ReadBlock <VertexDeclaration>();
     this.Unknown_50h       = reader.ReadSingle();
     this.Unknown_54h       = reader.ReadUInt16();
     this.Unknown_56h       = reader.ReadUInt16();
     this.Unknown_58h       = reader.ReadVector2();
     this.Unknown_60h       = reader.ReadVector4();
 }
        /// <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_8h          = reader.ReadUInt64();
            this.Unknown_10h         = reader.ReadUInt64();
            this.VertexBufferPointer = reader.ReadUInt64();
            this.Unknown_20h         = reader.ReadUInt64();
            this.Unknown_28h         = reader.ReadUInt64();
            this.Unknown_30h         = reader.ReadUInt64();
            this.IndexBufferPointer  = reader.ReadUInt64();
            this.Unknown_40h         = reader.ReadUInt64();
            this.Unknown_48h         = reader.ReadUInt64();
            this.Unknown_50h         = reader.ReadUInt64();
            this.IndicesCount        = reader.ReadUInt32();
            this.FacesCount          = reader.ReadUInt32();
            this.VerticesCount       = reader.ReadUInt16();
            this.IndicesPerFace      = reader.ReadUInt16();
            this.Unknown_64h         = reader.ReadUInt32();
            this.BonesIdPointer      = reader.ReadUInt64();
            this.VertexStride        = reader.ReadUInt16();
            this.BonesCount          = reader.ReadUInt16();
            this.Unknown_74h         = reader.ReadUInt32();
            this.VertexDataPointer   = reader.ReadUInt64();
            this.Unknown_80h         = reader.ReadUInt64();
            this.Unknown_88h         = reader.ReadUInt64();
            this.Unknown_90h         = reader.ReadUInt64();
            this.Unknown_98h         = reader.ReadUInt64();

            // read reference data
            this.VertexBuffer = reader.ReadBlockAt <VertexBuffer>(
                this.VertexBufferPointer // offset
                );
            this.IndexBuffer = reader.ReadBlockAt <IndexBuffer>(
                this.IndexBufferPointer // offset
                );
            this.BonesId = reader.ReadBlockAt <SimpleArray <ushort> >(
                this.BonesIdPointer, // offset
                this.BonesCount
                );
            this.VertexData = reader.ReadBlockAt <VertexData_GTA5_pc>(
                this.VertexDataPointer, // offset
                this.VertexStride,
                this.VerticesCount,
                this.VertexBuffer.Info
                );
        }
        /// <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.pxxxxx_xxx  = reader.ReadUInt64();
            this.pxxxxx_0    = reader.ReadUInt64();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.pxxxxx_1    = reader.ReadUInt64();
            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.pxxxxx_2    = reader.ReadUInt64();
            this.cntxx51a    = reader.ReadUInt16();
            this.cntxx51b    = reader.ReadUInt16();
            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();

            // read reference data
            this.pxxxxx_xxxdata = reader.ReadBlockAt <Unknown_F_013>(
                this.pxxxxx_xxx // offset
                );
            this.pxxxxx_0data = reader.ReadBlockAt <FragDrawable_GTA5_pc>(
                this.pxxxxx_0 // offset
                );
            this.pxxxxx_1data = reader.ReadBlockAt <Unknown_F_010>(
                this.pxxxxx_1 // offset
                );
            this.pxxxxx_2data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >(
                this.pxxxxx_2, // offset
                this.cntxx51a
                );
        }
Beispiel #38
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.NodesPointer        = reader.ReadUInt64();
            this.NodesCount          = reader.ReadUInt32();
            this.Unknown_1Ch         = reader.ReadUInt32();
            this.Unknown_20h         = reader.ReadUInt32();
            this.Unknown_24h         = reader.ReadUInt32();
            this.Unknown_28h_Pointer = reader.ReadUInt64();
            this.DataPointer1Length  = reader.ReadUInt32();
            this.Unknown_34h         = reader.ReadUInt32();
            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_Pointer = reader.ReadUInt64();
            this.cnt5a       = reader.ReadUInt16();
            this.cnt5b       = reader.ReadUInt16();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.len4        = reader.ReadUInt32();
            this.len5        = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.Nodes = reader.ReadBlockAt <ResourceSimpleArray <Node> >(
                this.NodesPointer, // offset
                this.NodesCount
                );
            this.Unknown_28h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_ND_002> >(
                this.Unknown_28h_Pointer, // offset
                this.DataPointer1Length
                );
            this.Unknown_38h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_ND_003> >(
                this.Unknown_38h_Pointer, // offset
                this.len4
                );
            this.Unknown_40h_Data = reader.ReadBlockAt <ResourceSimpleArray <byte_r> >(
                this.Unknown_40h_Pointer, // offset
                this.len5
                );
            this.Unknown_50h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_ND_004> >(
                this.Unknown_50h_Pointer, // offset
                this.cnt5b
                );
        }
Beispiel #39
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.len1 = reader.ReadUInt32();
            this.len2 = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.p2 = reader.ReadUInt64();
            this.len3 = reader.ReadUInt32();
            this.Unknown_34h = reader.ReadUInt32();
            this.p3 = reader.ReadUInt64();
            this.p4 = reader.ReadUInt64();
            this.Unknown_48h = reader.ReadUInt32();
            this.Unknown_4Ch = reader.ReadUInt32();
            this.p5 = reader.ReadUInt64();
            this.cnt5a = reader.ReadUInt16();
            this.cnt5b = reader.ReadUInt16();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.len4 = reader.ReadUInt32();
            this.len5 = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.Nodes = reader.ReadBlockAt<ResourceSimpleArray<Node>>(
                this.p1, // offset
                this.len1
            );
            this.p2_data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_ND_002>>(
                this.p2, // offset
                this.len3
            );
            this.p3_data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_ND_003>>(
                this.p3, // offset
                this.len4
            );
            this.p4_data = reader.ReadBlockAt<ResourceSimpleArray<byte_r>>(
                this.p4, // offset
                this.len5
            );
            this.p5_data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_ND_004>>(
                this.p5, // offset
                this.cnt5b
            );
        }
Beispiel #40
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.len1        = reader.ReadUInt32();
            this.len2        = reader.ReadUInt32();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.p2          = reader.ReadUInt64();
            this.len3        = reader.ReadUInt32();
            this.Unknown_34h = reader.ReadUInt32();
            this.p3          = reader.ReadUInt64();
            this.p4          = reader.ReadUInt64();
            this.Unknown_48h = reader.ReadUInt32();
            this.Unknown_4Ch = reader.ReadUInt32();
            this.p5          = reader.ReadUInt64();
            this.cnt5a       = reader.ReadUInt16();
            this.cnt5b       = reader.ReadUInt16();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.len4        = reader.ReadUInt32();
            this.len5        = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.Nodes = reader.ReadBlockAt <ResourceSimpleArray <Node> >(
                this.p1, // offset
                this.len1
                );
            this.p2_data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_ND_002> >(
                this.p2, // offset
                this.len3
                );
            this.p3_data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_ND_003> >(
                this.p3, // offset
                this.len4
                );
            this.p4_data = reader.ReadBlockAt <ResourceSimpleArray <byte_r> >(
                this.p4, // offset
                this.len5
                );
            this.p5_data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_ND_004> >(
                this.p5, // offset
                this.cnt5b
                );
        }
Beispiel #41
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.InstanceTuningPointer = reader.ReadUInt64();
            this.DrawablePointer       = reader.ReadUInt64();
            this.Unknown_20h           = reader.ReadUInt32();
            this.Unknown_24h           = reader.ReadUInt32();
            this.ControllerPointer     = reader.ReadUInt64();
            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.pxxxxx_2              = reader.ReadUInt64();
            this.cntxx51a              = reader.ReadUInt16();
            this.cntxx51b              = reader.ReadUInt16();
            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();

            // read reference data
            this.InstanceTuning = reader.ReadBlockAt <ClothInstanceTuning>(
                this.InstanceTuningPointer // offset
                );
            this.Drawable = reader.ReadBlockAt <FragDrawable>(
                this.DrawablePointer // offset
                );
            this.Controller = reader.ReadBlockAt <ClothController>(
                this.ControllerPointer // offset
                );
            this.pxxxxx_2data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >(
                this.pxxxxx_2, // offset
                this.cntxx51a
                );
        }
Beispiel #42
0
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.BucketsPointer = reader.ReadUInt64();
            this.BucketsCount   = reader.ReadUInt16();
            this.Count          = reader.ReadUInt16();
            this.Unknown_Ch     = reader.ReadUInt16();
            this.Unknown_Eh     = reader.ReadByte();
            this.Initialized    = reader.ReadByte();

            // read reference data
            this.Buckets = reader.ReadBlockAt <ResourcePointerArray64 <HashMapEntry> >(
                this.BucketsPointer, // offset
                this.BucketsCount
                );
        }
Beispiel #43
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.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            this.Unknown_Ch = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_P_010 >>(
                this.p1, // offset
                this.c1
            );
        }
Beispiel #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.Geometries = reader.ReadBlock <ResourcePointerList64 <DrawableGeometry> >();
            this.GeometriesBoundsPointer = reader.ReadUInt64();
            this.ShaderMappingPointer    = reader.ReadUInt64();
            this.Unknown_28h             = reader.ReadByte();
            this.IsSkinned       = reader.ReadByte();
            this.Unknown_2Ah     = reader.ReadByte();
            this.RootBoneIndex   = reader.ReadByte();
            this.Mask            = reader.ReadByte();
            this.Unknown_2Dh     = reader.ReadByte();
            this.GeometriesCount = reader.ReadUInt16();

            // read reference data
            this.GeometriesBounds = reader.ReadBlockAt <SimpleArray <Aabb> >(
                this.GeometriesBoundsPointer, // offset
                this.GeometriesCount > 1 ? this.GeometriesCount + 1 : this.GeometriesCount
                );
            this.ShaderMapping = reader.ReadBlockAt <SimpleArray <ushort> >(
                this.ShaderMappingPointer, // offset
                this.GeometriesCount
                );
        }
Beispiel #45
0
        /// <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.unk1 = reader.ReadUInt16();
            this.unk2 = 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<Animation>(
                this.p4 // offset
            );
        }
        /// <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
            );
        }
Beispiel #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 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
                );
        }
Beispiel #48
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.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();

            // read reference data
            this.p1data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_014> >(
                this.p1, // offset
                this.c1a
                );
        }
Beispiel #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.MaterialsPointer              = reader.ReadUInt64();
            this.MaterialColoursPointer        = reader.ReadUInt64();
            this.Unknown_100h                  = reader.ReadUInt32();
            this.Unknown_104h                  = reader.ReadUInt32();
            this.Unknown_108h                  = reader.ReadUInt32();
            this.Unknown_10Ch                  = reader.ReadUInt32();
            this.Unknown_110h                  = reader.ReadUInt32();
            this.Unknown_114h                  = reader.ReadUInt32();
            this.PolygonMaterialIndicesPointer = reader.ReadUInt64();
            this.MaterialsCount                = reader.ReadByte();
            this.MaterialColoursCount          = reader.ReadByte();
            this.Unknown_122h                  = reader.ReadUInt16();
            this.Unknown_124h                  = reader.ReadUInt32();
            this.Unknown_128h                  = reader.ReadUInt32();
            this.Unknown_12Ch                  = reader.ReadUInt32();

            // read reference data
            this.Materials = reader.ReadBlockAt <SimpleArray <BoundMaterial> >(
                this.MaterialsPointer, // offset
                this.MaterialsCount
                );
            this.MaterialColours = reader.ReadBlockAt <SimpleArray <uint> >(
                this.MaterialColoursPointer, // offset
                this.MaterialColoursCount
                );
            this.PolygonMaterialIndices = reader.ReadBlockAt <SimpleArray <byte> >(
                this.PolygonMaterialIndicesPointer, // offset
                this.PrimitivesCount
                );
        }
Beispiel #50
0
        /// <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.unk1        = reader.ReadUInt16();
            this.unk2        = 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 <Animation>(
                this.p4 // offset
                );
        }
        /// <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.Type        = reader.ReadByte();
            this.Unknown_11h = reader.ReadByte();
            this.Unknown_12h = reader.ReadUInt16();
            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();
        }
Beispiel #52
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.Type = reader.ReadByte();
            this.Unknown_11h = reader.ReadByte();
            this.Unknown_12h = reader.ReadUInt16();
            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();
        }
Beispiel #53
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.VirtualPagesCount  = reader.ReadByte();
            this.PhysicalPagesCount = reader.ReadByte();
            this.Unknown_Ah         = reader.ReadUInt16();
            this.Unknown_Ch         = reader.ReadUInt32();

            if (VirtualPagesCount > 0)
            {
                this.VirtualPagesPointers = new ulong[VirtualPagesCount];
                for (int i = 0; i < VirtualPagesCount; i++)
                {
                    this.VirtualPagesPointers[i] = reader.ReadUInt64();
                }
            }

            if (PhysicalPagesCount > 0)
            {
                this.PhysicalPagesPointers = new ulong[PhysicalPagesCount];
                for (int i = 0; i < PhysicalPagesCount; i++)
                {
                    this.PhysicalPagesPointers[i] = reader.ReadUInt64();
                }
            }
        }
Beispiel #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.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
                );
        }
Beispiel #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_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
            );
        }
Beispiel #56
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
                );
        }
Beispiel #57
0
        /// <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
                );
        }
Beispiel #58
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.p1          = reader.ReadUInt64();
            this.c1a         = reader.ReadUInt16();
            this.c1b         = 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.p1data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_019> >(
                this.p1, // offset
                this.c1a
                );
        }
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);
            this.AnimationsPointer = reader.ReadUInt64();
            this.AnimationsCount1  = reader.ReadUInt16();
            this.AnimationsCount2  = 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.Animations = reader.ReadBlockAt <ResourceSimpleArray <ClipAnimationsEntry_GTA5_pc> >(
                this.AnimationsPointer, // offset
                this.AnimationsCount1
                );
        }
Beispiel #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       = 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
                );
        }