Пример #1
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT                = reader.ReadUInt32();
            this.Unknown_4h         = reader.ReadUInt32();
            this.Unknown_8h         = reader.ReadUInt32();
            this.Unknown_Ch         = reader.ReadUInt32();
            this.Unknown_10h        = reader.ReadUInt32();
            this.Unknown_14h        = reader.ReadUInt32();
            this.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.EmitterRulePointer = reader.ReadUInt64();
            this.p1          = reader.ReadUInt64();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.EmitterRule = reader.ReadBlockAt <EmitterRule_GTA5_pc>(
                this.EmitterRulePointer // offset
                );
            this.p1data = reader.ReadBlockAt <string_r>(
                this.p1 // offset
                );
        }
Пример #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.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.p0 = reader.ReadUInt64();
            this.p1 = reader.ReadUInt64();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();

            // read reference data
            this.p0data = reader.ReadBlockAt<EmitterRule_GTA5_pc>(
                this.p0 // offset
            );
            this.p1data = reader.ReadBlockAt<string_r>(
                this.p1 // offset
            );
        }