/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.VFT = reader.ReadUInt32(); this.Unknown_4h = reader.ReadUInt32(); this.Unknown_8h = reader.ReadUInt32(); this.Unknown_Ch = reader.ReadUInt32(); this.Unknown_10h = reader.ReadUInt32(); this.Unknown_14h = reader.ReadUInt32(); this.p1 = reader.ReadUInt64(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.p2 = reader.ReadUInt64(); this.p3 = reader.ReadUInt64(); this.p4 = reader.ReadUInt64(); this.p5 = reader.ReadUInt64(); this.Unknown_50h = reader.ReadUInt32(); this.Unknown_54h = reader.ReadUInt32(); this.Unknown_58h = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); this.Unknown_60h = reader.ReadUInt32(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h = reader.ReadUInt32(); this.Unknown_6Ch = reader.ReadUInt32(); // read reference data this.p1data = reader.ReadBlockAt <Unknown_P_009>( this.p1 // offset ); this.p2data = reader.ReadBlockAt <string_r>( this.p2 // offset ); this.p3data = reader.ReadBlockAt <string_r>( this.p3 // offset ); this.p4data = reader.ReadBlockAt <EffectRule_GTA5_pc>( this.p4 // offset ); this.p5data = reader.ReadBlockAt <ParticleRule_GTA5_pc>( this.p5 // offset ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.VFT = reader.ReadUInt32(); this.Unknown_4h = reader.ReadUInt32(); this.Unknown_8h = reader.ReadUInt32(); this.Unknown_Ch = reader.ReadUInt32(); this.Unknown_10h = reader.ReadUInt32(); this.Unknown_14h = reader.ReadUInt32(); this.p1 = reader.ReadUInt64(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.p2 = reader.ReadUInt64(); this.p3 = reader.ReadUInt64(); this.p4 = reader.ReadUInt64(); this.p5 = reader.ReadUInt64(); this.Unknown_50h = reader.ReadUInt32(); this.Unknown_54h = reader.ReadUInt32(); this.Unknown_58h = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); this.Unknown_60h = reader.ReadUInt32(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h = reader.ReadUInt32(); this.Unknown_6Ch = reader.ReadUInt32(); // read reference data this.p1data = reader.ReadBlockAt<Unknown_P_009>( this.p1 // offset ); this.p2data = reader.ReadBlockAt<string_r>( this.p2 // offset ); this.p3data = reader.ReadBlockAt<string_r>( this.p3 // offset ); this.p4data = reader.ReadBlockAt<EffectRule_GTA5_pc>( this.p4 // offset ); this.p5data = reader.ReadBlockAt<ParticleRule_GTA5_pc>( this.p5 // offset ); }