Example #1
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT         = reader.ReadUInt32();
            this.Unknown_4h  = reader.ReadUInt32();
            this.Unknown_8h  = reader.ReadUInt32();
            this.Unknown_Ch  = reader.ReadUInt32();
            this.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
                );
        }
Example #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.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
            );
        }