public override void Read(ResourceDataReader reader, params object[] parameters) { base.Read(reader, parameters); // read structure data this.Unknown_08h = reader.ReadUInt32(); this.Unknown_0Ch = 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.NamePointer = reader.ReadUInt64(); this.Unknown_30h_Pointer = reader.ReadUInt64(); this.Unknown_38h_Pointer = reader.ReadUInt64(); this.Unknown_40h = reader.ReadUInt64(); this.Unknown_48h = reader.ReadUInt64(); this.Unknown_50h = reader.ReadUInt64(); this.Unknown_58h = reader.ReadUInt64(); this.Unknown_60h = reader.ReadUInt64(); this.Unknown_68h = reader.ReadBlock <ShaderResourceView>(); this.Unknown_A8h = reader.ReadUInt64(); // read reference data this.Name = reader.ReadBlockAt <string_r>(NamePointer); this.Unknown_30h_Data = reader.ReadBlockAt <ShaderResourceView>(Unknown_30h_Pointer); }
/// <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.NamePointer = reader.ReadUInt64(); 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.p2 = reader.ReadUInt64(); this.p3 = reader.ReadUInt64(); this.Unknown_48h = reader.ReadUInt32(); this.Unknown_4Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.p2data = reader.ReadBlockAt <Unknown_CL_200>( this.p2 // offset ); this.p3data = reader.ReadBlockAt <Unknown_CL_001>( this.p3 // 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.Unknown_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.Unknown_20h = reader.ReadBlock <ResourcePointerList64 <Unknown_E_001> >(); this.Unknown_30h = reader.ReadBlock <ResourceSimpleList64 <uint_r> >(); this.Unknown_40h = reader.ReadBlock <ResourceSimpleList64 <Unknown_E_002> >(); this.Unknown_50h = reader.ReadBlock <ResourceSimpleList64 <uint_r> >(); this.NamePointer = reader.ReadUInt64(); this.Unknown_68h = reader.ReadUInt32(); this.Unknown_6Ch = reader.ReadUInt32(); this.Unknown_70h = reader.ReadUInt32(); this.Unknown_74h = reader.ReadUInt32(); this.len = reader.ReadUInt16(); this.Unknown_7Ah = reader.ReadUInt16(); this.Unknown_7Ch = reader.ReadUInt32(); this.Unknown_80h = reader.ReadUInt32(); this.Unknown_84h = reader.ReadUInt32(); this.Unknown_88h = reader.ReadUInt32(); this.Unknown_8Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); }
/// <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_A8h = reader.ReadUInt64(); this.Unknown_B0h = reader.ReadMatrix4x4(); this.BoundPointer = reader.ReadUInt64(); this.Unknown_F8h_Data = reader.ReadBlock <SimpleList64 <ulong> >(); this.Unknown_108h_Data = reader.ReadBlock <SimpleList64 <Matrix4x4> >(); this.Unknown_118h = reader.ReadUInt64(); this.Unknown_120h = reader.ReadUInt64(); this.Unknown_128h = reader.ReadUInt64(); this.NamePointer = reader.ReadUInt64(); this.Unknown_138h = reader.ReadUInt64(); this.Unknown_140h = reader.ReadUInt64(); this.Unknown_148h = reader.ReadUInt64(); // read reference data this.Bound = reader.ReadBlockAt <Bound>( this.BoundPointer // offset ); this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // 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.NamePointer = reader.ReadUInt64(); this.NameLength1 = reader.ReadUInt16(); this.NameLength2 = reader.ReadUInt16(); 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.TagsPointer = reader.ReadUInt64(); this.PropertiesPointer = reader.ReadUInt64(); this.Unknown_48h = reader.ReadUInt32(); this.Unknown_4Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.Tags = reader.ReadBlockAt <Tags>( this.TagsPointer // offset ); this.Properties = reader.ReadBlockAt <PropertyMap>( this.PropertiesPointer // offset ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.RotationX = reader.ReadSingle(); this.RotationY = reader.ReadSingle(); this.RotationZ = reader.ReadSingle(); this.RotationW = reader.ReadSingle(); this.TranslationX = reader.ReadSingle(); this.TranslationY = reader.ReadSingle(); this.TranslationZ = reader.ReadSingle(); this.Unknown_1Ch = reader.ReadUInt32(); this.ScaleX = reader.ReadSingle(); this.ScaleY = reader.ReadSingle(); this.ScaleZ = reader.ReadSingle(); this.Unknown_2Ch = reader.ReadSingle(); this.NextSiblingIndex = reader.ReadInt16(); this.ParentIndex = reader.ReadInt16(); this.Unknown_34h = reader.ReadUInt32(); this.NamePointer = reader.ReadUInt64(); this.Flags = reader.ReadUInt16(); this.Unknown_42h = reader.ReadUInt16(); this.Id = reader.ReadUInt16(); this.Unknown_46h = reader.ReadUInt16(); this.Unknown_48h = reader.ReadUInt32(); this.Unknown_4Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); }
/// <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.NamePointer = reader.ReadUInt64(); this.LightAttributesPointer = reader.ReadUInt64(); this.LightAttributesCount1 = reader.ReadUInt16(); this.LightAttributesCount2 = reader.ReadUInt16(); this.Unknown_BCh = reader.ReadUInt32(); this.Unknown_C0h = reader.ReadUInt32(); this.Unknown_C4h = reader.ReadUInt32(); this.BoundPointer = reader.ReadUInt64(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.LightAttributes = reader.ReadBlockAt <ResourceSimpleArray <LightAttributes> >( this.LightAttributesPointer, // offset this.LightAttributesCount1 ); this.Bound = reader.ReadBlockAt <Bound>( this.BoundPointer // offset ); }
/// <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.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.NamePointer = 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(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.NamePointer = reader.ReadUInt64(); this.Unknown_8h = reader.ReadUInt64(); this.Unknown_10h = reader.ReadUInt64(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); }
/// <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.ValuePointer = reader.ReadUInt64(); this.ValueLength1 = reader.ReadUInt16(); this.ValueLength2 = reader.ReadUInt16(); this.Unknown_2Ch = reader.ReadUInt32(); // read reference data this.Value = reader.ReadBlockAt <string_r>( this.ValuePointer // offset ); }
/// <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.Unknown_30h = reader.ReadUInt64(); this.p2 = reader.ReadUInt64(); this.Unknown_40h = reader.ReadUInt64(); this.p3 = reader.ReadUInt64(); this.Unknown_50h = reader.ReadUInt64(); this.p4 = reader.ReadUInt64(); this.Unknown_60h = reader.ReadUInt64(); this.Unknown_68h = reader.ReadUInt64(); this.Unknown_70h = reader.ReadUInt64(); 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.KeyframeProp5 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp6 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp7 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp8 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp9 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProps = reader.ReadBlock <ResourcePointerList64 <KeyframeProp> >(); this.Unknown_628h = reader.ReadUInt32(); this.Unknown_62Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.p2data = reader.ReadBlockAt <Domain>( this.p2 // offset ); this.p3data = reader.ReadBlockAt <Domain>( this.p3 // offset ); this.p4data = reader.ReadBlockAt <Domain>( this.p4 // offset ); }
/// <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) { base.Read(reader, parameters); // read structure data this.Unknown_10h = reader.ReadUInt32(); this.Unknown_14h = reader.ReadUInt32(); this.Unknown_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.ClassInfosPointer = reader.ReadUInt64(); this.p2 = reader.ReadUInt64(); this.DataBlocksPointer = reader.ReadUInt64(); this.NamePointer = reader.ReadUInt64(); this.p5 = reader.ReadUInt64(); this.ClassInfosCount = reader.ReadUInt16(); this.c2 = reader.ReadUInt16(); this.DataBlocksCount = reader.ReadUInt16(); this.Unknown_4Eh = reader.ReadUInt16(); 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.ClassInfos = reader.ReadBlockAt <ResourceSimpleArray <MetaClassInfo_GTA5_pc> >( this.ClassInfosPointer, // offset this.ClassInfosCount ); this.p2data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_META_002> >( this.p2, // offset this.c2 ); this.DataBlocks = reader.ReadBlockAt <ResourceSimpleArray <MetaDataBlock_GTA5_pc> >( this.DataBlocksPointer, // offset this.DataBlocksCount ); this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.p5data = reader.ReadBlockAt <Unknown_META_001>( this.p5 // offset ); }
/// <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_A8h = reader.ReadUInt32(); this.Unknown_ACh = reader.ReadUInt32(); this.Unknown_B0h = reader.ReadBlock <RAGE_Matrix4>(); this.BoundPointer = reader.ReadUInt64(); this.Unknown_F8h_Pointer = reader.ReadUInt64(); this.Count1 = reader.ReadUInt16(); this.Count2 = reader.ReadUInt16(); this.Unknown_104h = reader.ReadUInt32(); this.Unknown_108h_Pointer = reader.ReadUInt64(); this.Count3 = reader.ReadUInt16(); this.Count4 = reader.ReadUInt16(); this.Unknown_114h = reader.ReadUInt32(); this.Unknown_118h = reader.ReadUInt32(); this.Unknown_11Ch = reader.ReadUInt32(); this.Unknown_120h = reader.ReadUInt32(); this.Unknown_124h = reader.ReadUInt32(); this.Unknown_128h = reader.ReadUInt32(); this.Unknown_12Ch = reader.ReadUInt32(); this.NamePointer = reader.ReadUInt64(); this.Unknown_138h = reader.ReadUInt32(); this.Unknown_13Ch = reader.ReadUInt32(); this.Unknown_140h = reader.ReadUInt32(); this.Unknown_144h = reader.ReadUInt32(); this.Unknown_148h = reader.ReadUInt32(); this.Unknown_14Ch = reader.ReadUInt32(); // read reference data this.Bound = reader.ReadBlockAt <Bound>( this.BoundPointer // offset ); this.Unknown_F8h_Data = reader.ReadBlockAt <ResourceSimpleArray <ulong_r> >( this.Unknown_F8h_Pointer, // offset this.Count1 ); this.Unknown_108h_Data = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Matrix4> >( this.Unknown_108h_Pointer, // offset this.Count2 ); this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); }
/// <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.ReadInt32(); this.Unknown_14h = reader.ReadInt16(); this.HasUselessData = reader.ReadByte(); this.Unknown_17h = reader.ReadByte(); this.Unknown_18h = reader.ReadInt32(); this.RootBlockIndex = reader.ReadInt32(); this.StructureInfosPointer = reader.ReadInt64(); this.EnumInfosPointer = reader.ReadInt64(); this.DataBlocksPointer = reader.ReadInt64(); this.NamePointer = reader.ReadInt64(); this.UselessPointer = reader.ReadInt64(); this.StructureInfosCount = reader.ReadInt16(); this.EnumInfosCount = reader.ReadInt16(); this.DataBlocksCount = reader.ReadInt16(); this.Unknown_4Eh = reader.ReadInt16(); this.Unknown_50h = reader.ReadInt32(); this.Unknown_54h = reader.ReadInt32(); this.Unknown_58h = reader.ReadInt32(); this.Unknown_5Ch = reader.ReadInt32(); this.Unknown_60h = reader.ReadInt32(); this.Unknown_64h = reader.ReadInt32(); this.Unknown_68h = reader.ReadInt32(); this.Unknown_6Ch = reader.ReadInt32(); // read reference data this.StructureInfos = reader.ReadBlockAt <ResourceSimpleArray <StructureInfo> >( (ulong)this.StructureInfosPointer, // offset this.StructureInfosCount ); this.EnumInfos = reader.ReadBlockAt <ResourceSimpleArray <EnumInfo> >( (ulong)this.EnumInfosPointer, // offset this.EnumInfosCount ); this.DataBlocks = reader.ReadBlockAt <ResourceSimpleArray <DataBlock> >( (ulong)this.DataBlocksPointer, // offset this.DataBlocksCount ); this.Name = reader.ReadBlockAt <string_r>( (ulong)this.NamePointer // offset ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.Unknown_0h = reader.ReadVector4(); this.NamePointer = reader.ReadUInt64(); this.DrawablePointer = reader.ReadUInt64(); this.NameHash = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.Unknown_28h = reader.ReadUInt64(); // read reference data this.Name = reader.ReadBlockAt<string_r>( this.NamePointer // offset ); this.Drawable = reader.ReadBlockAt<Drawable>( this.DrawablePointer // 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 ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.Unknown_0h = reader.ReadSingle(); 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.NamePointer = reader.ReadUInt64(); this.BoundPointer = reader.ReadUInt64(); 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.ReadSingle(); this.Unknown_44h = reader.ReadSingle(); this.Unknown_48h = reader.ReadSingle(); this.Unknown_4Ch = reader.ReadSingle(); this.Unknown_50h = reader.ReadSingle(); this.Unknown_54h = reader.ReadSingle(); this.Unknown_58h = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); this.Unknown_60h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_70h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_80h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_90h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_A0h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_B0h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_C0h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_D0h = reader.ReadBlock <RAGE_Vector4>(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.Bound = reader.ReadBlockAt <Bound_GTA5_pc>( this.BoundPointer // offset ); }
public override void Read(ResourceDataReader reader, params object[] parameters) { base.Read(reader, parameters); // read structure data this.ShaderGroupPointer = reader.ReadUInt64(); this.Unknown_18h = reader.ReadUInt64(); this.BoundingCenter = reader.ReadVector3(); this.BoundingSphereRadius = reader.ReadSingle(); this.BoundingBoxMin = reader.ReadVector4(); this.BoundingBoxMax = reader.ReadVector4(); this.DrawableModelsHighPointer = reader.ReadUInt64(); this.DrawableModelsMediumPointer = reader.ReadUInt64(); this.DrawableModelsLowPointer = reader.ReadUInt64(); this.DrawableModelsVeryLowPointer = reader.ReadUInt64(); this.LodDistanceHigh = reader.ReadSingle(); this.LodDistanceMedium = reader.ReadSingle(); this.LodDistanceLow = reader.ReadSingle(); this.LodDistanceVeryLow = reader.ReadSingle(); this.DrawBucketMaskHigh = reader.ReadUInt32(); this.DrawBucketMaskMedium = reader.ReadUInt32(); this.DrawBucketMaskLow = reader.ReadUInt32(); this.DrawBucketMaskVeryLow = reader.ReadUInt32(); this.Unknown_40h = reader.ReadUInt64(); this.Unknown_48h = reader.ReadUInt64(); this.Unknown_50h = reader.ReadUInt64(); this.NamePointer = reader.ReadUInt64(); this.Unknown_60h = reader.ReadUInt64(); this.BoundPointer = reader.ReadUInt64(); this.Unknown_70h_Pointer = reader.ReadUInt64(); this.Unknown_78h = reader.ReadUInt64(); // read reference data this.ShaderGroup = reader.ReadBlockAt <ShaderGroup>(this.ShaderGroupPointer); this.DrawableModelsHigh = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel> >(this.DrawableModelsHighPointer); this.DrawableModelsMedium = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel> >(this.DrawableModelsMediumPointer); this.DrawableModelsLow = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel> >(this.DrawableModelsLowPointer); this.DrawableModelsVeryLow = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel> >(this.DrawableModelsVeryLowPointer); this.Name = reader.ReadBlockAt <string_r>(NamePointer); this.Bound = reader.ReadBlockAt <Bound>(BoundPointer); }
/// <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 ); }
/// <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.NamePointer = reader.ReadUInt64(); this.BoundPointer = reader.ReadUInt64(); this.TypeFlags = reader.ReadUInt32(); this.IncludeFlags = reader.ReadUInt32(); this.PropertyFlags = reader.ReadUInt32(); this.Unknown_34h = reader.ReadUInt32(); this.Unknown_38h = reader.ReadUInt32(); this.Unknown_3Ch = reader.ReadUInt32(); this.Mass = reader.ReadSingle(); this.InvMass = reader.ReadSingle(); this.Unknown_48h = reader.ReadSingle(); this.MaxSpeed = reader.ReadSingle(); this.MaxAngSpeed = reader.ReadSingle(); this.Unknown_54h = reader.ReadSingle(); this.Unknown_58h = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); this.AngInertia = reader.ReadVector4(); this.InvAngInertia = reader.ReadVector4(); this.Unknown_80h = reader.ReadVector4(); this.Unknown_90h = reader.ReadVector4(); this.Unknown_A0h = reader.ReadVector4(); this.Unknown_B0h = reader.ReadVector4(); this.Unknown_C0h = reader.ReadVector4(); this.Unknown_D0h = reader.ReadVector4(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.Bound = reader.ReadBlockAt <Bound>( this.BoundPointer // offset ); }
/// <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.NamePointer = reader.ReadUInt64(); this.Unknown_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.TextureDictionaryPointer = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.DrawableDictionaryPointer = reader.ReadUInt64(); this.ParticleRuleDictionaryPointer = reader.ReadUInt64(); this.Unknown_40h = reader.ReadUInt32(); this.Unknown_44h = reader.ReadUInt32(); this.EmitterRuleDictionaryPointer = reader.ReadUInt64(); this.EffectRuleDictionaryPointer = reader.ReadUInt64(); this.Unknown_58h = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.TextureDictionary = reader.ReadBlockAt <TextureDictionary>( this.TextureDictionaryPointer // offset ); this.DrawableDictionary = reader.ReadBlockAt <DrawableDictionary>( this.DrawableDictionaryPointer // offset ); this.ParticleRuleDictionary = reader.ReadBlockAt <ParticleRuleDictionary>( this.ParticleRuleDictionaryPointer // offset ); this.EffectRuleDictionary = reader.ReadBlockAt <EffectRuleDictionary>( this.EmitterRuleDictionaryPointer // offset ); this.EmitterRuleDictionary = reader.ReadBlockAt <EmitterRuleDictionary>( this.EffectRuleDictionaryPointer // offset ); }
/// <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_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.p0 = reader.ReadUInt64(); this.p1 = reader.ReadUInt64(); this.Unknown_38h = reader.ReadUInt32(); this.Unknown_3Ch = reader.ReadUInt32(); // read reference data this.p0data = reader.ReadBlockAt <Texture_GTA5_pc>( this.p0 // offset ); this.p1data = reader.ReadBlockAt <string_r>( this.p1 // offset ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.Unknown_0h = reader.ReadUInt32(); this.Unknown_4h = reader.ReadUInt32(); this.Unknown_8h = reader.ReadUInt32(); this.Unknown_Ch = reader.ReadUInt32(); this.p1 = reader.ReadUInt64(); this.p2 = reader.ReadUInt64(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); // read reference data this.p1data = reader.ReadBlockAt <string_r>( this.p1 // offset ); this.p2data = reader.ReadBlockAt <DrawableBase_GTA5_pc>( this.p2 // 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.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 <EffectRule>( this.EmitterRulePointer // offset ); this.p1data = reader.ReadBlockAt <string_r>( this.p1 // offset ); }
/// <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.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.DrawablePointer = reader.ReadUInt64(); this.Unknown_28h_Pointer = reader.ReadUInt64(); this.Unknown_30h_Pointer = reader.ReadUInt64(); this.Count0 = reader.ReadUInt32(); this.Unknown_4Ch = reader.ReadUInt32(); this.Unknown_50h = reader.ReadUInt32(); this.Unknown_54h = reader.ReadUInt32(); this.NamePointer = reader.ReadUInt64(); this.Clothes = reader.ReadBlock <ResourcePointerList64 <EnvironmentCloth> >(); this.Unknown_70h = reader.ReadUInt32(); this.Unknown_74h = reader.ReadUInt32(); this.Unknown_78h = reader.ReadUInt32(); this.Unknown_7Ch = reader.ReadUInt32(); this.Unknown_80h = reader.ReadUInt32(); this.Unknown_84h = reader.ReadUInt32(); this.Unknown_88h = reader.ReadUInt32(); this.Unknown_8Ch = reader.ReadUInt32(); this.Unknown_90h = reader.ReadUInt32(); this.Unknown_94h = reader.ReadUInt32(); this.Unknown_98h = reader.ReadUInt32(); this.Unknown_9Ch = reader.ReadUInt32(); this.Unknown_A0h = reader.ReadUInt32(); this.Unknown_A4h = reader.ReadUInt32(); this.Unknown_A8h_Pointer = reader.ReadUInt64(); this.Unknown_B0h = reader.ReadUInt32(); this.Unknown_B4h = reader.ReadUInt32(); this.Unknown_B8h = reader.ReadUInt32(); this.Unknown_BCh = reader.ReadUInt32(); this.Unknown_C0h = reader.ReadUInt32(); this.Unknown_C4h = reader.ReadUInt32(); this.Unknown_C8h = reader.ReadUInt32(); this.Unknown_CCh = reader.ReadUInt32(); this.Unknown_D0h = reader.ReadUInt32(); this.Unknown_D4h = reader.ReadUInt32(); this.Unknown_D8h = reader.ReadByte(); this.Count3 = reader.ReadByte(); this.Unknown_DAh = reader.ReadUInt16(); this.Unknown_DCh = reader.ReadUInt32(); this.Unknown_E0h_Pointer = reader.ReadUInt64(); this.Unknown_E8h = reader.ReadUInt32(); this.Unknown_ECh = reader.ReadUInt32(); this.PhysicsLODGroupPointer = reader.ReadUInt64(); this.Unknown_F8h_Pointer = reader.ReadUInt64(); this.Unknown_100h = reader.ReadUInt32(); this.Unknown_104h = reader.ReadUInt32(); this.Unknown_108h = reader.ReadUInt32(); this.Unknown_10Ch = reader.ReadUInt32(); this.LightAttributes = reader.ReadBlock <ResourceSimpleList64 <LightAttributes> >(); this.Unknown_120h_Pointer = reader.ReadUInt64(); this.Unknown_128h = reader.ReadUInt32(); this.Unknown_12Ch = reader.ReadUInt32(); // read reference data this.Drawable = reader.ReadBlockAt <FragDrawable>( this.DrawablePointer // offset ); this.Unknown_28h_Data = reader.ReadBlockAt <ResourcePointerArray64 <FragDrawable> >( this.Unknown_28h_Pointer, // offset this.Count0 ); this.Unknown_30h_Data = reader.ReadBlockAt <ResourcePointerArray64 <string_r> >( this.Unknown_30h_Pointer, // offset this.Count0 ); this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.Unknown_A8h_Data = reader.ReadBlockAt <Unknown_F_003>( this.Unknown_A8h_Pointer // offset ); this.Unknown_E0h_Data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_F_004> >( this.Unknown_E0h_Pointer, // offset this.Count3 ); this.PhysicsLODGroup = reader.ReadBlockAt <FragPhysicsLODGroup>( this.PhysicsLODGroupPointer // offset ); this.Unknown_F8h_Data = reader.ReadBlockAt <FragDrawable>( this.Unknown_F8h_Pointer // offset ); this.Unknown_120h_Data = reader.ReadBlockAt <Unknown_F_002>( this.Unknown_120h_Pointer // 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.Unknown_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.NamePointer = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.Unknown_30h = reader.ReadUInt32(); this.Unknown_34h = reader.ReadUInt32(); this.p2 = reader.ReadUInt64(); this.Unknown_40h = reader.ReadUInt32(); this.Unknown_44h = reader.ReadUInt32(); this.p3 = reader.ReadUInt64(); this.Unknown_50h = reader.ReadUInt32(); this.Unknown_54h = reader.ReadUInt32(); this.p4 = reader.ReadUInt64(); this.Unknown_60h = reader.ReadUInt32(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h = reader.ReadUInt32(); this.Unknown_6Ch = reader.ReadUInt32(); this.Unknown_70h = reader.ReadUInt32(); this.Unknown_74h = reader.ReadUInt32(); this.emb1 = reader.ReadBlock <Unknown_P_018>(); this.emb2 = reader.ReadBlock <Unknown_P_018>(); this.emb3 = reader.ReadBlock <Unknown_P_018>(); this.emb4 = reader.ReadBlock <Unknown_P_018>(); this.emb5 = reader.ReadBlock <Unknown_P_018>(); this.emb6 = reader.ReadBlock <Unknown_P_018>(); this.emb7 = reader.ReadBlock <Unknown_P_018>(); this.emb8 = reader.ReadBlock <Unknown_P_018>(); this.emb9 = reader.ReadBlock <Unknown_P_018>(); this.emb10 = reader.ReadBlock <Unknown_P_018>(); this.pref = reader.ReadUInt64(); this.refcnt1 = reader.ReadUInt16(); this.refcnt2 = reader.ReadUInt16(); this.Unknown_624h = reader.ReadUInt32(); this.Unknown_628h = reader.ReadUInt32(); this.Unknown_62Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.p2data = reader.ReadBlockAt <Unknown_P_004>( this.p2 // offset ); this.p3data = reader.ReadBlockAt <Unknown_P_004>( this.p3 // offset ); this.p4data = reader.ReadBlockAt <Unknown_P_004>( this.p4 // offset ); this.refs = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_018> >( this.pref, // offset this.refcnt2 ); }
/// <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.emb1 = reader.ReadBlock <Unknown_P_020>(); this.emb2 = reader.ReadBlock <Unknown_P_020>(); this.Unknown_100h = reader.ReadUInt32(); this.Unknown_104h = reader.ReadUInt32(); this.Unknown_108h = reader.ReadUInt32(); this.Unknown_10Ch = reader.ReadUInt32(); this.Unknown_110h = reader.ReadUInt32(); this.Unknown_114h = reader.ReadUInt32(); this.Unknown_118h = reader.ReadUInt32(); this.Unknown_11Ch = reader.ReadUInt32(); this.NamePointer = reader.ReadUInt64(); this.Unknown_128h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >(); this.Unknown_138h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >(); this.Unknown_148h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >(); this.Unknown_158h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >(); this.Unknown_168h = reader.ReadBlock <ResourcePointerList64 <Behaviour_GTA5_pc> >(); this.Unknown_178h = reader.ReadUInt32(); this.Unknown_17Ch = reader.ReadUInt32(); this.Unknown_180h = reader.ReadUInt32(); this.Unknown_184h = reader.ReadUInt32(); this.Unknown_188h = reader.ReadBlock <ResourceSimpleList64 <Unknown_P_032> >(); this.Unknown_198h = reader.ReadUInt32(); this.Unknown_19Ch = reader.ReadUInt32(); this.Unknown_1A0h = reader.ReadUInt32(); this.Unknown_1A4h = reader.ReadUInt32(); this.Unknown_1A8h = reader.ReadUInt32(); this.Unknown_1ACh = reader.ReadUInt32(); this.VFTx3 = reader.ReadUInt32(); this.Unknown_1B4h = reader.ReadUInt32(); this.p9 = reader.ReadUInt64(); this.p10 = reader.ReadUInt64(); this.Unknown_1C8h = reader.ReadUInt32(); this.Unknown_1CCh = reader.ReadUInt32(); this.Unknown_1D0h = reader.ReadUInt32(); this.Unknown_1D4h = reader.ReadUInt32(); this.VFTx4 = reader.ReadUInt32(); this.Unknown_1DCh = reader.ReadUInt32(); this.Unknown_1E0h = reader.ReadUInt32(); this.Unknown_1E4h = reader.ReadUInt32(); this.Unknown_1E8h = reader.ReadUInt32(); this.Unknown_1ECh = reader.ReadUInt32(); this.Unknown_1F0h = reader.ReadBlock <ResourcePointerList64 <Unknown_P_007> >(); this.Unknown_200h = reader.ReadUInt32(); this.Unknown_204h = reader.ReadUInt32(); this.Unknown_208h = reader.ReadUInt32(); this.Unknown_20Ch = reader.ReadUInt32(); this.Unknown_210h = reader.ReadBlock <ResourceSimpleList64 <Unknown_P_022> >(); this.Unknown_220h = reader.ReadUInt32(); this.Unknown_224h = reader.ReadUInt32(); this.Unknown_228h = reader.ReadUInt32(); this.Unknown_22Ch = reader.ReadUInt32(); this.Unknown_230h = reader.ReadUInt32(); this.Unknown_234h = reader.ReadUInt32(); this.Unknown_238h = reader.ReadUInt32(); this.Unknown_23Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.p9data = reader.ReadBlockAt <string_r>( this.p9 // offset ); this.p10data = reader.ReadBlockAt <string_r>( this.p10 // 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.Unknown_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.emb1 = reader.ReadBlock <Unknown_P_020>(); this.emb2 = reader.ReadBlock <Unknown_P_020>(); this.Unknown_100h = reader.ReadUInt32(); this.Unknown_104h = reader.ReadUInt32(); this.Unknown_108h = reader.ReadUInt32(); this.Unknown_10Ch = reader.ReadUInt32(); this.Unknown_110h = reader.ReadUInt32(); this.Unknown_114h = reader.ReadUInt32(); this.Unknown_118h = reader.ReadUInt32(); this.Unknown_11Ch = reader.ReadUInt32(); this.NamePointer = reader.ReadUInt64(); this.p4 = reader.ReadUInt64(); this.c1 = reader.ReadUInt16(); this.c2 = reader.ReadUInt16(); this.Unknown_134h = reader.ReadUInt32(); this.p5 = reader.ReadUInt64(); this.c3 = reader.ReadUInt16(); this.c4 = reader.ReadUInt16(); this.Unknown_144h = reader.ReadUInt32(); this.p6 = reader.ReadUInt64(); this.c5 = reader.ReadUInt16(); this.c6 = reader.ReadUInt16(); this.Unknown_154h = reader.ReadUInt32(); this.p7 = reader.ReadUInt64(); this.c7a = reader.ReadUInt16(); this.c7b = reader.ReadUInt16(); this.Unknown_164h = reader.ReadUInt32(); this.p8 = reader.ReadUInt64(); this.c8 = reader.ReadUInt16(); this.c9 = reader.ReadUInt16(); this.Unknown_174h = reader.ReadUInt32(); this.Unknown_178h = reader.ReadUInt32(); this.Unknown_17Ch = reader.ReadUInt32(); this.Unknown_180h = reader.ReadUInt32(); this.Unknown_184h = reader.ReadUInt32(); this.pxx = reader.ReadUInt64(); this.cxx1 = reader.ReadUInt16(); this.cxx2 = reader.ReadUInt16(); this.Unknown_194h = reader.ReadUInt32(); this.Unknown_198h = reader.ReadUInt32(); this.Unknown_19Ch = reader.ReadUInt32(); this.Unknown_1A0h = reader.ReadUInt32(); this.Unknown_1A4h = reader.ReadUInt32(); this.Unknown_1A8h = reader.ReadUInt32(); this.Unknown_1ACh = reader.ReadUInt32(); this.VFTx3 = reader.ReadUInt32(); this.Unknown_1B4h = reader.ReadUInt32(); this.p9 = reader.ReadUInt64(); this.p10 = reader.ReadUInt64(); this.Unknown_1C8h = reader.ReadUInt32(); this.Unknown_1CCh = reader.ReadUInt32(); this.Unknown_1D0h = reader.ReadUInt32(); this.Unknown_1D4h = reader.ReadUInt32(); this.VFTx4 = reader.ReadUInt32(); this.Unknown_1DCh = reader.ReadUInt32(); this.Unknown_1E0h = reader.ReadUInt32(); this.Unknown_1E4h = reader.ReadUInt32(); this.Unknown_1E8h = reader.ReadUInt32(); this.Unknown_1ECh = reader.ReadUInt32(); this.p11 = reader.ReadUInt64(); this.c11a = reader.ReadUInt16(); this.c11b = reader.ReadUInt16(); this.Unknown_1FCh = reader.ReadUInt32(); this.Unknown_200h = reader.ReadUInt32(); this.Unknown_204h = reader.ReadUInt32(); this.Unknown_208h = reader.ReadUInt32(); this.Unknown_20Ch = reader.ReadUInt32(); this.p12 = reader.ReadUInt64(); this.c12a = reader.ReadUInt16(); this.c12b = reader.ReadUInt16(); this.Unknown_21Ch = reader.ReadUInt32(); this.Unknown_220h = reader.ReadUInt32(); this.Unknown_224h = reader.ReadUInt32(); this.Unknown_228h = reader.ReadUInt32(); this.Unknown_22Ch = reader.ReadUInt32(); this.Unknown_230h = reader.ReadUInt32(); this.Unknown_234h = reader.ReadUInt32(); this.Unknown_238h = reader.ReadUInt32(); this.Unknown_23Ch = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.p4data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >( this.p4, // offset this.c1 ); this.p5data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >( this.p5, // offset this.c3 ); this.p6data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >( this.p6, // offset this.c5 ); this.p7data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >( this.p7, // offset this.c7a ); this.p8data = reader.ReadBlockAt <ResourcePointerArray64 <Behaviour_GTA5_pc> >( this.p8, // offset this.c8 ); this.pxxdata = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_032> >( this.pxx, // offset this.cxx1 ); this.p9data = reader.ReadBlockAt <string_r>( this.p9 // offset ); this.p10data = reader.ReadBlockAt <string_r>( this.p10 // offset ); this.p11data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_007> >( this.p11, // offset this.c11a ); this.p12data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_P_022> >( this.p12, // offset this.c12a ); }
/// <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.ReadUInt64(); this.Unknown_18h = reader.ReadUInt64(); this.BoundingSphereCenter = reader.ReadVector3(); this.BoundingSphereRadius = reader.ReadSingle(); this.PrimaryDrawablePointer = reader.ReadUInt64(); this.DrawablesPointer = reader.ReadUInt64(); this.DrawablesNamesPointer = reader.ReadUInt64(); this.DrawablesCount = reader.ReadUInt32(); this.Unknown_4Ch = reader.ReadUInt32(); this.Unknown_50h = reader.ReadUInt64(); this.NamePointer = reader.ReadUInt64(); this.Clothes = reader.ReadBlock <ResourcePointerList64 <EnvironmentCloth> >(); this.Unknown_70h = reader.ReadUInt64(); this.Unknown_78h = reader.ReadUInt64(); this.Unknown_80h = reader.ReadUInt64(); this.Unknown_88h = reader.ReadUInt64(); this.Unknown_90h = reader.ReadUInt64(); this.Unknown_98h = reader.ReadUInt64(); this.Unknown_A0h = reader.ReadUInt64(); this.MatrixSetPointer = reader.ReadUInt64(); this.Unknown_B0h = reader.ReadUInt32(); this.Unknown_B4h = reader.ReadUInt32(); this.Unknown_B8h = reader.ReadUInt32(); this.Unknown_BCh = reader.ReadUInt32(); this.Unknown_C0h = reader.ReadUInt32(); this.Unknown_C4h = reader.ReadUInt32(); this.Unknown_C8h = reader.ReadUInt32(); this.Unknown_CCh = reader.ReadUInt32(); this.GravityMultiplier = reader.ReadSingle(); this.BuoyancyMultiplier = reader.ReadSingle(); this.Unknown_D8h = reader.ReadByte(); this.GlassPaneModelInfosCount = reader.ReadByte(); this.Unknown_DAh = reader.ReadUInt16(); this.Unknown_DCh = reader.ReadUInt32(); this.GlassPaneModelInfosPointer = reader.ReadUInt64(); this.Unknown_E8h = reader.ReadUInt64(); this.PhysicsLODGroupPointer = reader.ReadUInt64(); this.ClothDrawablePointer = reader.ReadUInt64(); this.Unknown_100h = reader.ReadUInt64(); this.Unknown_108h = reader.ReadUInt64(); this.LightAttributes = reader.ReadBlock <ResourceSimpleList64 <LightAttributes> >(); this.VehicleGlassWindowDataPointer = reader.ReadUInt64(); this.Unknown_128h = reader.ReadUInt64(); // read reference data this.PrimaryDrawable = reader.ReadBlockAt <FragDrawable>( this.PrimaryDrawablePointer // offset ); this.Drawables = reader.ReadBlockAt <ResourcePointerArray64 <FragDrawable> >( this.DrawablesPointer, // offset this.DrawablesCount ); this.DrawablesNames = reader.ReadBlockAt <ResourcePointerArray64 <string_r> >( this.DrawablesNamesPointer, // offset this.DrawablesCount ); this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.MatrixSet = reader.ReadBlockAt <MatrixSet>( this.MatrixSetPointer // offset ); this.GlassPaneModelInfos = reader.ReadBlockAt <ResourcePointerArray64 <GlassPaneModelInfo> >( this.GlassPaneModelInfosPointer, // offset this.GlassPaneModelInfosCount ); this.PhysicsLODGroup = reader.ReadBlockAt <FragPhysicsLODGroup>( this.PhysicsLODGroupPointer // offset ); this.ClothDrawable = reader.ReadBlockAt <FragDrawable>( this.ClothDrawablePointer // offset ); this.VehicleGlassWindowData = reader.ReadBlockAt <VehicleGlassWindowData>( this.VehicleGlassWindowDataPointer // offset ); }