/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.Unknown_0h_Pointer = reader.ReadUInt64(); this.Count1 = reader.ReadUInt32(); this.Count2 = 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 <RAGE_Vector4>(); this.Unknown_30h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_40h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_50h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_60h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_70h_Pointer = reader.ReadUInt64(); this.Count3 = reader.ReadUInt16(); this.Count4 = reader.ReadUInt16(); this.Unknown_7Ch = reader.ReadUInt32(); // read reference data this.Unknown_0h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_B_004> >( this.Unknown_0h_Pointer, // offset this.Count1 ); this.Unknown_70h_Data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_B_005> >( this.Unknown_70h_Pointer, // offset this.Count3 ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.NodesPointer = reader.ReadUInt64(); this.NodesCount = reader.ReadUInt32(); this.NodesCapacity = reader.ReadUInt32(); this.Unknown_10h = reader.ReadUInt32(); this.Unknown_14h = reader.ReadUInt32(); this.Unknown_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.BoundingBoxMin = reader.ReadBlock <RAGE_Vector4>(); this.BoundingBoxMax = reader.ReadBlock <RAGE_Vector4>(); this.BoundingBoxCenter = reader.ReadBlock <RAGE_Vector4>(); this.QuantumInverse = reader.ReadBlock <RAGE_Vector4>(); this.Quantum = reader.ReadBlock <RAGE_Vector4>(); this.TreesPointer = reader.ReadUInt64(); this.TreesCount1 = reader.ReadUInt16(); this.TreesCount2 = reader.ReadUInt16(); this.Unknown_7Ch = reader.ReadUInt32(); // read reference data this.Nodes = reader.ReadBlockAt <ResourceSimpleArray <BVHNode> >( this.NodesPointer, // offset this.NodesCount ); this.Trees = reader.ReadBlockAt <ResourceSimpleArray <BVHTreeInfo> >( this.TreesPointer, // offset this.TreesCount1 ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.Unknown_0h_Pointer = reader.ReadUInt64(); this.Count1 = reader.ReadUInt32(); this.Count2 = 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<RAGE_Vector4>(); this.Unknown_30h = reader.ReadBlock<RAGE_Vector4>(); this.Unknown_40h = reader.ReadBlock<RAGE_Vector4>(); this.Unknown_50h = reader.ReadBlock<RAGE_Vector4>(); this.Unknown_60h = reader.ReadBlock<RAGE_Vector4>(); this.Unknown_70h_Pointer = reader.ReadUInt64(); this.Count3 = reader.ReadUInt16(); this.Count4 = reader.ReadUInt16(); this.Unknown_7Ch = reader.ReadUInt32(); // read reference data this.Unknown_0h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_B_004>>( this.Unknown_0h_Pointer, // offset this.Count1 ); this.Unknown_70h_Data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_B_005>>( this.Unknown_70h_Pointer, // offset this.Count3 ); }
/// <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.ShaderGroupPointer = reader.ReadUInt64(); this.SkeletonPointer = reader.ReadUInt64(); this.BoundingCenter = reader.ReadBlock <RAGE_Vector3>(); this.BoundingSphereRadius = reader.ReadSingle(); this.BoundingBoxMin = reader.ReadBlock <RAGE_Vector4>(); this.BoundingBoxMax = reader.ReadBlock <RAGE_Vector4>(); this.DrawableModelsHighPointer = reader.ReadUInt64(); this.DrawableModelsMediumPointer = reader.ReadUInt64(); this.DrawableModelsLowPointer = reader.ReadUInt64(); this.DrawableModelsVeryLowPointer = reader.ReadUInt64(); this.Unknown_70h = reader.ReadSingle(); this.Unknown_74h = reader.ReadSingle(); this.Unknown_78h = reader.ReadSingle(); this.Unknown_7Ch = reader.ReadSingle(); this.Unknown_80h = reader.ReadUInt32(); this.Unknown_84h = reader.ReadUInt32(); this.Unknown_88h = reader.ReadUInt32(); this.Unknown_8Ch = reader.ReadUInt32(); this.JointsPointer = reader.ReadUInt64(); this.Unknown_98h = reader.ReadUInt32(); this.Unknown_9Ch = reader.ReadUInt32(); this.DrawableModelsXPointer = reader.ReadUInt64(); // read reference data this.ShaderGroup = reader.ReadBlockAt <ShaderGroup_GTA5_pc>( this.ShaderGroupPointer // offset ); this.Skeleton = reader.ReadBlockAt <Skeleton_GTA5_pc>( this.SkeletonPointer // offset ); this.DrawableModelsHigh = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModelsHighPointer // offset ); this.DrawableModelsMedium = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModelsMediumPointer // offset ); this.DrawableModelsLow = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModelsLowPointer // offset ); this.DrawableModelsVeryLow = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModelsVeryLowPointer // offset ); this.Joints = reader.ReadBlockAt <Joints_GTA5_pc>( this.JointsPointer // offset ); this.DrawableModelsX = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModelsXPointer // 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.ShaderGroupPointer = reader.ReadUInt64(); this.SkeletonPointer = reader.ReadUInt64(); this.Unknown_20h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_30h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_40h = reader.ReadBlock <RAGE_Vector4>(); this.DrawableModels1Pointer = reader.ReadUInt64(); this.DrawableModels2Pointer = reader.ReadUInt64(); this.DrawableModels3Pointer = reader.ReadUInt64(); this.DrawableModels4Pointer = reader.ReadUInt64(); 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_Pointer = reader.ReadUInt64(); this.Unknown_98h = reader.ReadUInt32(); this.Unknown_9Ch = reader.ReadUInt32(); this.DrawableModelsXPointer = reader.ReadUInt64(); // read reference data this.ShaderGroup = reader.ReadBlockAt <ShaderGroup_GTA5_pc>( this.ShaderGroupPointer // offset ); this.Skeleton = reader.ReadBlockAt <Skeleton_GTA5_pc>( this.SkeletonPointer // offset ); this.DrawableModels1 = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModels1Pointer // offset ); this.DrawableModels2 = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModels2Pointer // offset ); this.DrawableModels3 = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModels3Pointer // offset ); this.DrawableModels4 = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModels4Pointer // offset ); this.Unknown_90h_Data = reader.ReadBlockAt <Unknown_D_002>( this.Unknown_90h_Pointer // offset ); this.DrawableModelsX = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel_GTA5_pc> >( this.DrawableModelsXPointer // 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.ShaderGroupPointer = reader.ReadUInt64(); this.SkeletonPointer = reader.ReadUInt64(); this.Unknown_20h = reader.ReadBlock<RAGE_Vector4>(); this.Unknown_30h = reader.ReadBlock<RAGE_Vector4>(); this.Unknown_40h = reader.ReadBlock<RAGE_Vector4>(); this.DrawableModels1Pointer = reader.ReadUInt64(); this.DrawableModels2Pointer = reader.ReadUInt64(); this.DrawableModels3Pointer = reader.ReadUInt64(); this.DrawableModels4Pointer = reader.ReadUInt64(); 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_Pointer = reader.ReadUInt64(); this.Unknown_98h = reader.ReadUInt32(); this.Unknown_9Ch = reader.ReadUInt32(); this.DrawableModelsXPointer = reader.ReadUInt64(); // read reference data this.ShaderGroup = reader.ReadBlockAt<ShaderGroup_GTA5_pc>( this.ShaderGroupPointer // offset ); this.Skeleton = reader.ReadBlockAt<Skeleton_GTA5_pc>( this.SkeletonPointer // offset ); this.DrawableModels1 = reader.ReadBlockAt<ResourcePointerList64<DrawableModel_GTA5_pc>>( this.DrawableModels1Pointer // offset ); this.DrawableModels2 = reader.ReadBlockAt<ResourcePointerList64<DrawableModel_GTA5_pc>>( this.DrawableModels2Pointer // offset ); this.DrawableModels3 = reader.ReadBlockAt<ResourcePointerList64<DrawableModel_GTA5_pc>>( this.DrawableModels3Pointer // offset ); this.DrawableModels4 = reader.ReadBlockAt<ResourcePointerList64<DrawableModel_GTA5_pc>>( this.DrawableModels4Pointer // offset ); this.Unknown_90h_Data = reader.ReadBlockAt<Unknown_D_002>( this.Unknown_90h_Pointer // offset ); this.DrawableModelsX = reader.ReadBlockAt<ResourcePointerList64<DrawableModel_GTA5_pc>>( this.DrawableModelsXPointer // 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 ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.AABB_Max = reader.ReadBlock<RAGE_Vector4>(); this.AABB_Min = reader.ReadBlock<RAGE_Vector4>(); }
/// <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.ArticulatedBodyTypePointer = reader.ReadUInt64(); this.Unknown_28h_Pointer = reader.ReadUInt64(); this.Unknown_30h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_40h = reader.ReadBlock <RAGE_Vector4>(); this.Unknown_50h = reader.ReadBlock <RAGE_Vector4>(); 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.GroupNamesPointer = reader.ReadUInt64(); this.GroupsPointer = reader.ReadUInt64(); this.ChildrenPointer = reader.ReadUInt64(); this.Archetype1Pointer = reader.ReadUInt64(); this.Archetype2Pointer = reader.ReadUInt64(); this.BoundPointer = reader.ReadUInt64(); this.Unknown_F0h_Pointer = reader.ReadUInt64(); this.Unknown_F8h_Pointer = reader.ReadUInt64(); this.Unknown_100h_Pointer = reader.ReadUInt64(); this.Unknown_108h_Pointer = reader.ReadUInt64(); this.Unknown_110h_Pointer = reader.ReadUInt64(); this.Count1 = reader.ReadByte(); this.Count2 = reader.ReadByte(); this.GroupsCount = reader.ReadByte(); this.Unknown_11Bh = reader.ReadByte(); this.Unknown_11Ch = reader.ReadByte(); this.ChildrenCount = reader.ReadByte(); this.Count3 = reader.ReadByte(); this.Unknown_11Fh = reader.ReadByte(); this.Unknown_120h = reader.ReadUInt32(); this.Unknown_124h = reader.ReadUInt32(); this.Unknown_128h = reader.ReadUInt32(); this.Unknown_12Ch = reader.ReadUInt32(); // read reference data this.ArticulatedBodyType = reader.ReadBlockAt <ArticulatedBodyType>( this.ArticulatedBodyTypePointer // offset ); this.Unknown_28h_Data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >( this.Unknown_28h_Pointer, // offset this.ChildrenCount ); this.GroupNames = reader.ReadBlockAt <ResourcePointerArray64 <fragNameStruct> >( this.GroupNamesPointer, // offset this.GroupsCount ); this.Groups = reader.ReadBlockAt <ResourcePointerArray64 <FragTypeGroup> >( this.GroupsPointer, // offset this.GroupsCount ); this.Children = reader.ReadBlockAt <ResourcePointerArray64 <FragTypeChild> >( this.ChildrenPointer, // offset this.ChildrenCount ); this.Archetype1 = reader.ReadBlockAt <Archetype>( this.Archetype1Pointer // offset ); this.Archetype2 = reader.ReadBlockAt <Archetype>( this.Archetype2Pointer // offset ); this.Bound = reader.ReadBlockAt <Bound>( this.BoundPointer // offset ); this.Unknown_F0h_Data = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Vector4> >( this.Unknown_F0h_Pointer, // offset this.ChildrenCount ); this.Unknown_F8h_Data = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Vector4> >( this.Unknown_F8h_Pointer, // offset this.ChildrenCount ); this.Unknown_100h_Data = reader.ReadBlockAt <Unknown_F_001>( this.Unknown_100h_Pointer // offset ); this.Unknown_108h_Data = reader.ReadBlockAt <ResourceSimpleArray <byte_r> >( this.Unknown_108h_Pointer, // offset this.Count1 ); this.Unknown_110h_Data = reader.ReadBlockAt <ResourceSimpleArray <byte_r> >( this.Unknown_110h_Pointer, // offset this.Count2 ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.AABB_Max = reader.ReadBlock <RAGE_Vector4>(); this.AABB_Min = reader.ReadBlock <RAGE_Vector4>(); }
/// <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_Pointer = reader.ReadUInt64(); this.Unknown_28h_Pointer = reader.ReadUInt64(); this.Unknown_30h = reader.ReadBlock<RAGE_Vector4>(); this.Unknown_40h = reader.ReadBlock<RAGE_Vector4>(); this.Unknown_50h = reader.ReadBlock<RAGE_Vector4>(); 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.GroupNamesPointer = reader.ReadUInt64(); this.GroupsPointer = reader.ReadUInt64(); this.ChildrenPointer = reader.ReadUInt64(); this.Archetype1Pointer = reader.ReadUInt64(); this.Archetype2Pointer = reader.ReadUInt64(); this.BoundPointer = reader.ReadUInt64(); this.Unknown_F0h_Pointer = reader.ReadUInt64(); this.Unknown_F8h_Pointer = reader.ReadUInt64(); this.Unknown_100h_Pointer = reader.ReadUInt64(); this.Unknown_108h_Pointer = reader.ReadUInt64(); this.Unknown_110h_Pointer = reader.ReadUInt64(); this.Count1 = reader.ReadByte(); this.Count2 = reader.ReadByte(); this.GroupsCount = reader.ReadByte(); this.Unknown_11Bh = reader.ReadByte(); this.Unknown_11Ch = reader.ReadByte(); this.ChildrenCount = reader.ReadByte(); this.Count3 = reader.ReadByte(); this.Unknown_11Fh = reader.ReadByte(); this.Unknown_120h = reader.ReadUInt32(); this.Unknown_124h = reader.ReadUInt32(); this.Unknown_128h = reader.ReadUInt32(); this.Unknown_12Ch = reader.ReadUInt32(); // read reference data this.Unknown_20h_Data = reader.ReadBlockAt<Unknown_F_030>( this.Unknown_20h_Pointer // offset ); this.Unknown_28h_Data = reader.ReadBlockAt<ResourceSimpleArray<uint_r>>( this.Unknown_28h_Pointer, // offset this.ChildrenCount ); this.GroupNames = reader.ReadBlockAt<ResourcePointerArray64<fragNameStruct_GTA5_pc>>( this.GroupNamesPointer, // offset this.GroupsCount ); this.Groups = reader.ReadBlockAt<ResourcePointerArray64<FragTypeGroup_GTA5_pc>>( this.GroupsPointer, // offset this.GroupsCount ); this.Children = reader.ReadBlockAt<ResourcePointerArray64<FragTypeChild_GTA5_pc>>( this.ChildrenPointer, // offset this.ChildrenCount ); this.Archetype1 = reader.ReadBlockAt<Archetype_GTA5_pc>( this.Archetype1Pointer // offset ); this.Archetype2 = reader.ReadBlockAt<Archetype_GTA5_pc>( this.Archetype2Pointer // offset ); this.Bound = reader.ReadBlockAt<Bound_GTA5_pc>( this.BoundPointer // offset ); this.Unknown_F0h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Vector4>>( this.Unknown_F0h_Pointer, // offset this.ChildrenCount ); this.Unknown_F8h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Vector4>>( this.Unknown_F8h_Pointer, // offset this.ChildrenCount ); this.Unknown_100h_Data = reader.ReadBlockAt<Unknown_F_002>( this.Unknown_100h_Pointer // offset ); this.Unknown_108h_Data = reader.ReadBlockAt<ResourceSimpleArray<byte_r>>( this.Unknown_108h_Pointer, // offset this.Count1 ); this.Unknown_110h_Data = reader.ReadBlockAt<ResourceSimpleArray<byte_r>>( this.Unknown_110h_Pointer, // offset this.Count2 ); }