/// <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.InstanceTuningPointer = reader.ReadUInt64(); this.DrawablePointer = reader.ReadUInt64(); this.Unknown_20h = reader.ReadUInt64(); this.ControllerPointer = reader.ReadUInt64(); this.Unknown_30h = reader.ReadUInt64(); this.Unknown_38h = reader.ReadUInt64(); this.Unknown_40h = reader.ReadUInt64(); this.Unknown_48h = reader.ReadUInt64(); this.Unknown_50h = reader.ReadUInt64(); this.Unknown_58h = reader.ReadUInt64(); this.UserData = reader.ReadBlock <SimpleList64 <uint> >(); this.Unknown_70h = reader.ReadUInt64(); this.Unknown_78h = reader.ReadUInt32(); this.Unknown_7Ch = reader.ReadUInt32(); // read reference data this.InstanceTuning = reader.ReadBlockAt <ClothInstanceTuning>( this.InstanceTuningPointer // offset ); this.Drawable = reader.ReadBlockAt <FragDrawable>( this.DrawablePointer // offset ); this.Controller = reader.ReadBlockAt <ClothController>( this.ControllerPointer // 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.InstanceTuningPointer = reader.ReadUInt64(); this.DrawablePointer = reader.ReadUInt64(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.ControllerPointer = 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.InstanceTuning = reader.ReadBlockAt <ClothInstanceTuning>( this.InstanceTuningPointer // offset ); this.Drawable = reader.ReadBlockAt <FragDrawable>( this.DrawablePointer // offset ); this.Controller = reader.ReadBlockAt <ClothController>( this.ControllerPointer // offset ); this.pxxxxx_2data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >( this.pxxxxx_2, // offset this.cntxx51a ); }