/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { base.Read(reader, parameters); // read structure data this.Unknown_10h = reader.ReadUInt32(); this.Unknown_14h = reader.ReadUInt32(); this.Unknown_18h = reader.ReadSingle(); this.Unknown_1Ch = reader.ReadUInt32(); this.NamePointer = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt64(); this.VFTx2 = reader.ReadUInt64(); this.EventEmitters = reader.ReadBlock <ResourcePointerList64 <EventEmitter> >(); this.p4 = 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.ReadVector4(); this.Unknown_70h = reader.ReadVector4(); this.Unknown_80h = reader.ReadSingle(); this.Unknown_84h = reader.ReadSingle(); this.Unknown_88h = reader.ReadUInt32(); this.Unknown_8Ch = reader.ReadUInt32(); this.Unknown_90h = reader.ReadVector4(); this.Unknown_A0h = reader.ReadVector4(); this.Unknown_B0h = reader.ReadVector4(); this.KeyframeProp0 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp1 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp2 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp3 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp4 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProps = reader.ReadBlock <ResourcePointerList64 <KeyframeProp> >(); this.Unknown_3A0h = reader.ReadUInt32(); this.Unknown_3A4h = reader.ReadUInt32(); this.Unknown_3A8h = reader.ReadSingle(); this.Unknown_3ACh = reader.ReadUInt32(); this.Unknown_3B0h = reader.ReadUInt64(); this.Unknown_3B8h = reader.ReadUInt64(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.p4data = reader.ReadBlockAt <EvolutionParameters>( this.p4 // 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 ); }