/// <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_005>( this.p1 // offset ); this.p2data = reader.ReadBlockAt <string_r>( this.p2 // offset ); this.p3data = reader.ReadBlockAt <string_r>( this.p3 // offset ); this.EmitterRule = reader.ReadBlockAt <EmitterRule>( this.p4 // offset ); this.ParticleRule = reader.ReadBlockAt <ParticleRule>( 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.ReadUInt64(); this.Index = reader.ReadUInt32(); this.Unknown_Ch = reader.ReadUInt32(); this.Unknown_10h = reader.ReadUInt32(); this.Unknown_14h = reader.ReadSingle(); this.EvolutionParamsPointer = reader.ReadUInt64(); this.Unknown_20h = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt64(); this.EmitterNamePointer = reader.ReadUInt64(); this.ParticleNamePointer = reader.ReadUInt64(); this.EmitterRulePointer = reader.ReadUInt64(); this.ParticleRulePointer = reader.ReadUInt64(); this.MoveSpeedScale = reader.ReadSingle(); this.MoveSpeedScaleModifier = reader.ReadSingle(); this.ParticleScale = reader.ReadSingle(); this.ParticleScaleModifier = reader.ReadSingle(); this.Unknown_60h = reader.ReadUInt32(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h = reader.ReadUInt64(); // read reference data this.EvolutionParams = reader.ReadBlockAt <EvolutionParameters>( this.EvolutionParamsPointer // offset ); this.EmitterName = reader.ReadBlockAt <string_r>( this.EmitterNamePointer // offset ); this.ParticleName = reader.ReadBlockAt <string_r>( this.ParticleNamePointer // offset ); this.EmitterRule = reader.ReadBlockAt <EmitterRule>( this.EmitterRulePointer // offset ); this.ParticleRule = reader.ReadBlockAt <ParticleRule>( this.ParticleRulePointer // offset ); }