/// <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.emb1         = reader.ReadBlock <Unknown_P_020>();
            this.emb2         = reader.ReadBlock <Unknown_P_020>();
            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.Unknown_118h = reader.ReadUInt32();
            this.Unknown_11Ch = reader.ReadUInt32();
            this.NamePointer  = reader.ReadUInt64();
            this.p4           = reader.ReadUInt64();
            this.c1           = reader.ReadUInt16();
            this.c2           = reader.ReadUInt16();
            this.Unknown_134h = reader.ReadUInt32();
            this.p5           = reader.ReadUInt64();
            this.c3           = reader.ReadUInt16();
            this.c4           = reader.ReadUInt16();
            this.Unknown_144h = reader.ReadUInt32();
            this.p6           = reader.ReadUInt64();
            this.c5           = reader.ReadUInt16();
            this.c6           = reader.ReadUInt16();
            this.Unknown_154h = reader.ReadUInt32();
            this.p7           = reader.ReadUInt64();
            this.c7a          = reader.ReadUInt16();
            this.c7b          = reader.ReadUInt16();
            this.Unknown_164h = reader.ReadUInt32();
            this.p8           = reader.ReadUInt64();
            this.c8           = reader.ReadUInt16();
            this.c9           = reader.ReadUInt16();
            this.Unknown_174h = reader.ReadUInt32();
            this.Unknown_178h = reader.ReadUInt32();
            this.Unknown_17Ch = reader.ReadUInt32();
            this.Unknown_180h = reader.ReadUInt32();
            this.Unknown_184h = reader.ReadUInt32();
            this.pxx          = reader.ReadUInt64();
            this.cxx1         = reader.ReadUInt16();
            this.cxx2         = reader.ReadUInt16();
            this.Unknown_194h = reader.ReadUInt32();
            this.Unknown_198h = reader.ReadUInt32();
            this.Unknown_19Ch = reader.ReadUInt32();
            this.Unknown_1A0h = reader.ReadUInt32();
            this.Unknown_1A4h = reader.ReadUInt32();
            this.Unknown_1A8h = reader.ReadUInt32();
            this.Unknown_1ACh = reader.ReadUInt32();
            this.VFTx3        = reader.ReadUInt32();
            this.Unknown_1B4h = reader.ReadUInt32();
            this.p9           = reader.ReadUInt64();
            this.p10          = reader.ReadUInt64();
            this.Unknown_1C8h = reader.ReadUInt32();
            this.Unknown_1CCh = reader.ReadUInt32();
            this.Unknown_1D0h = reader.ReadUInt32();
            this.Unknown_1D4h = reader.ReadUInt32();
            this.VFTx4        = reader.ReadUInt32();
            this.Unknown_1DCh = reader.ReadUInt32();
            this.Unknown_1E0h = reader.ReadUInt32();
            this.Unknown_1E4h = reader.ReadUInt32();
            this.Unknown_1E8h = reader.ReadUInt32();
            this.Unknown_1ECh = reader.ReadUInt32();
            this.p11          = reader.ReadUInt64();
            this.c11a         = reader.ReadUInt16();
            this.c11b         = reader.ReadUInt16();
            this.Unknown_1FCh = reader.ReadUInt32();
            this.Unknown_200h = reader.ReadUInt32();
            this.Unknown_204h = reader.ReadUInt32();
            this.Unknown_208h = reader.ReadUInt32();
            this.Unknown_20Ch = reader.ReadUInt32();
            this.p12          = reader.ReadUInt64();
            this.c12a         = reader.ReadUInt16();
            this.c12b         = reader.ReadUInt16();
            this.Unknown_21Ch = reader.ReadUInt32();
            this.Unknown_220h = reader.ReadUInt32();
            this.Unknown_224h = reader.ReadUInt32();
            this.Unknown_228h = reader.ReadUInt32();
            this.Unknown_22Ch = reader.ReadUInt32();
            this.Unknown_230h = reader.ReadUInt32();
            this.Unknown_234h = reader.ReadUInt32();
            this.Unknown_238h = reader.ReadUInt32();
            this.Unknown_23Ch = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.p4data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >(
                this.p4, // offset
                this.c1
                );
            this.p5data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >(
                this.p5, // offset
                this.c3
                );
            this.p6data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >(
                this.p6, // offset
                this.c5
                );
            this.p7data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >(
                this.p7, // offset
                this.c7a
                );
            this.p8data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >(
                this.p8, // offset
                this.c8
                );
            this.pxxdata = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_032> >(
                this.pxx, // offset
                this.cxx1
                );
            this.p9data = reader.ReadBlockAt <string_r>(
                this.p9 // offset
                );
            this.p10data = reader.ReadBlockAt <string_r>(
                this.p10 // offset
                );
            this.p11data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_007> >(
                this.p11, // offset
                this.c11a
                );
            this.p12data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_022> >(
                this.p12, // offset
                this.c12a
                );
        }
        /// <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.emb1         = reader.ReadBlock <Unknown_P_020>();
            this.emb2         = reader.ReadBlock <Unknown_P_020>();
            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.Unknown_118h = reader.ReadUInt32();
            this.Unknown_11Ch = reader.ReadUInt32();
            this.NamePointer  = reader.ReadUInt64();
            this.Unknown_128h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >();
            this.Unknown_138h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >();
            this.Unknown_148h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >();
            this.Unknown_158h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >();
            this.Unknown_168h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >();
            this.Unknown_178h = reader.ReadUInt32();
            this.Unknown_17Ch = reader.ReadUInt32();
            this.Unknown_180h = reader.ReadUInt32();
            this.Unknown_184h = reader.ReadUInt32();
            this.Unknown_188h = reader.ReadBlock <ResourceSimpleList64 <Unknown_P_032> >();
            this.Unknown_198h = reader.ReadUInt32();
            this.Unknown_19Ch = reader.ReadUInt32();
            this.Unknown_1A0h = reader.ReadUInt32();
            this.Unknown_1A4h = reader.ReadUInt32();
            this.Unknown_1A8h = reader.ReadUInt32();
            this.Unknown_1ACh = reader.ReadUInt32();
            this.VFTx3        = reader.ReadUInt32();
            this.Unknown_1B4h = reader.ReadUInt32();
            this.p9           = reader.ReadUInt64();
            this.p10          = reader.ReadUInt64();
            this.Unknown_1C8h = reader.ReadUInt32();
            this.Unknown_1CCh = reader.ReadUInt32();
            this.Unknown_1D0h = reader.ReadUInt32();
            this.Unknown_1D4h = reader.ReadUInt32();
            this.VFTx4        = reader.ReadUInt32();
            this.Unknown_1DCh = reader.ReadUInt32();
            this.Unknown_1E0h = reader.ReadUInt32();
            this.Unknown_1E4h = reader.ReadUInt32();
            this.Unknown_1E8h = reader.ReadUInt32();
            this.Unknown_1ECh = reader.ReadUInt32();
            this.Unknown_1F0h = reader.ReadBlock <ResourcePointerList64 <Unknown_P_007> >();
            this.Unknown_200h = reader.ReadUInt32();
            this.Unknown_204h = reader.ReadUInt32();
            this.Unknown_208h = reader.ReadUInt32();
            this.Unknown_20Ch = reader.ReadUInt32();
            this.Unknown_210h = reader.ReadBlock <ResourceSimpleList64 <Unknown_P_022> >();
            this.Unknown_220h = reader.ReadUInt32();
            this.Unknown_224h = reader.ReadUInt32();
            this.Unknown_228h = reader.ReadUInt32();
            this.Unknown_22Ch = reader.ReadUInt32();
            this.Unknown_230h = reader.ReadUInt32();
            this.Unknown_234h = reader.ReadUInt32();
            this.Unknown_238h = reader.ReadUInt32();
            this.Unknown_23Ch = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.p9data = reader.ReadBlockAt <string_r>(
                this.p9 // offset
                );
            this.p10data = reader.ReadBlockAt <string_r>(
                this.p10 // offset
                );
        }
Exemplo n.º 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.emb1 = reader.ReadBlock<Unknown_P_020>();
            this.emb2 = reader.ReadBlock<Unknown_P_020>();
            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.Unknown_118h = reader.ReadUInt32();
            this.Unknown_11Ch = reader.ReadUInt32();
            this.NamePointer = reader.ReadUInt64();
            this.p4 = reader.ReadUInt64();
            this.c1 = reader.ReadUInt16();
            this.c2 = reader.ReadUInt16();
            this.Unknown_134h = reader.ReadUInt32();
            this.p5 = reader.ReadUInt64();
            this.c3 = reader.ReadUInt16();
            this.c4 = reader.ReadUInt16();
            this.Unknown_144h = reader.ReadUInt32();
            this.p6 = reader.ReadUInt64();
            this.c5 = reader.ReadUInt16();
            this.c6 = reader.ReadUInt16();
            this.Unknown_154h = reader.ReadUInt32();
            this.p7 = reader.ReadUInt64();
            this.c7a = reader.ReadUInt16();
            this.c7b = reader.ReadUInt16();
            this.Unknown_164h = reader.ReadUInt32();
            this.p8 = reader.ReadUInt64();
            this.c8 = reader.ReadUInt16();
            this.c9 = reader.ReadUInt16();
            this.Unknown_174h = reader.ReadUInt32();
            this.Unknown_178h = reader.ReadUInt32();
            this.Unknown_17Ch = reader.ReadUInt32();
            this.Unknown_180h = reader.ReadUInt32();
            this.Unknown_184h = reader.ReadUInt32();
            this.pxx = reader.ReadUInt64();
            this.cxx1 = reader.ReadUInt16();
            this.cxx2 = reader.ReadUInt16();
            this.Unknown_194h = reader.ReadUInt32();
            this.Unknown_198h = reader.ReadUInt32();
            this.Unknown_19Ch = reader.ReadUInt32();
            this.Unknown_1A0h = reader.ReadUInt32();
            this.Unknown_1A4h = reader.ReadUInt32();
            this.Unknown_1A8h = reader.ReadUInt32();
            this.Unknown_1ACh = reader.ReadUInt32();
            this.VFTx3 = reader.ReadUInt32();
            this.Unknown_1B4h = reader.ReadUInt32();
            this.p9 = reader.ReadUInt64();
            this.p10 = reader.ReadUInt64();
            this.Unknown_1C8h = reader.ReadUInt32();
            this.Unknown_1CCh = reader.ReadUInt32();
            this.Unknown_1D0h = reader.ReadUInt32();
            this.Unknown_1D4h = reader.ReadUInt32();
            this.VFTx4 = reader.ReadUInt32();
            this.Unknown_1DCh = reader.ReadUInt32();
            this.Unknown_1E0h = reader.ReadUInt32();
            this.Unknown_1E4h = reader.ReadUInt32();
            this.Unknown_1E8h = reader.ReadUInt32();
            this.Unknown_1ECh = reader.ReadUInt32();
            this.p11 = reader.ReadUInt64();
            this.c11a = reader.ReadUInt16();
            this.c11b = reader.ReadUInt16();
            this.Unknown_1FCh = reader.ReadUInt32();
            this.Unknown_200h = reader.ReadUInt32();
            this.Unknown_204h = reader.ReadUInt32();
            this.Unknown_208h = reader.ReadUInt32();
            this.Unknown_20Ch = reader.ReadUInt32();
            this.p12 = reader.ReadUInt64();
            this.c12a = reader.ReadUInt16();
            this.c12b = reader.ReadUInt16();
            this.Unknown_21Ch = reader.ReadUInt32();
            this.Unknown_220h = reader.ReadUInt32();
            this.Unknown_224h = reader.ReadUInt32();
            this.Unknown_228h = reader.ReadUInt32();
            this.Unknown_22Ch = reader.ReadUInt32();
            this.Unknown_230h = reader.ReadUInt32();
            this.Unknown_234h = reader.ReadUInt32();
            this.Unknown_238h = reader.ReadUInt32();
            this.Unknown_23Ch = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt<string_r>(
                this.NamePointer // offset
            );
            this.p4data = reader.ReadBlockAt<ResourcePointerArray64<Behaviour_GTA5_pc>>(
                this.p4, // offset
                this.c1
            );
            this.p5data = reader.ReadBlockAt<ResourcePointerArray64<Behaviour_GTA5_pc>>(
                this.p5, // offset
                this.c3
            );
            this.p6data = reader.ReadBlockAt<ResourcePointerArray64<Behaviour_GTA5_pc>>(
                this.p6, // offset
                this.c5
            );
            this.p7data = reader.ReadBlockAt<ResourcePointerArray64<Behaviour_GTA5_pc>>(
                this.p7, // offset
                this.c7a
            );
            this.p8data = reader.ReadBlockAt<ResourcePointerArray64<Behaviour_GTA5_pc>>(
                this.p8, // offset
                this.c8
            );
            this.pxxdata = reader.ReadBlockAt<ResourceSimpleArray<Unknown_P_032>>(
                this.pxx, // offset
                this.cxx1
            );
            this.p9data = reader.ReadBlockAt<string_r>(
                this.p9 // offset
            );
            this.p10data = reader.ReadBlockAt<string_r>(
                this.p10 // offset
            );
            this.p11data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_P_007>>(
                this.p11, // offset
                this.c11a
            );
            this.p12data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_P_022>>(
                this.p12, // offset
                this.c12a
            );
        }