/// <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.HashesPointer = reader.ReadUInt64(); this.HashesCount1 = reader.ReadUInt16(); this.HashesCount2 = reader.ReadUInt16(); this.Unknown_2Ch = reader.ReadUInt32(); this.EffectRulesPointer = reader.ReadUInt64(); this.EffectRulesCount1 = reader.ReadUInt16(); this.EffectRulesCount2 = reader.ReadUInt16(); this.Unknown_3Ch = reader.ReadUInt32(); // read reference data this.Hashes = reader.ReadBlockAt<ResourceSimpleArray<uint_r>>( this.HashesPointer, // offset this.HashesCount1 ); this.EffectRules = reader.ReadBlockAt<ResourcePointerArray64<EffectRule_GTA5_pc>>( this.EffectRulesPointer, // offset this.EffectRulesCount1 ); }
/// <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.p1 = reader.ReadUInt64(); this.c1 = reader.ReadUInt16(); this.c2 = reader.ReadUInt16(); 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.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.Unknown_540h = reader.ReadUInt32(); this.Unknown_544h = reader.ReadUInt32(); this.Unknown_548h = reader.ReadUInt32(); this.Unknown_54Ch = reader.ReadUInt32(); // read reference data this.p1data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_P_018>>( this.p1, // offset this.c1 ); }
/// <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.GeometriesPointer = reader.ReadUInt64(); this.GeometriesCount1 = reader.ReadUInt16(); this.GeometriesCount2 = reader.ReadUInt16(); this.Unknown_14h = reader.ReadUInt32(); this.Unknown_18h_Pointer = reader.ReadUInt64(); this.ShaderMappingPointer = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); // read reference data this.Geometries = reader.ReadBlockAt<ResourcePointerArray64<DrawableGeometry_GTA5_pc>>( this.GeometriesPointer, // offset this.GeometriesCount1 ); this.Unknown_18h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_AABB>>( this.Unknown_18h_Pointer, // offset this.GeometriesCount1 > 1 ? this.GeometriesCount1 + 1 : this.GeometriesCount1 ); this.ShaderMapping = reader.ReadBlockAt<ResourceSimpleArray<ushort_r>>( this.ShaderMappingPointer, // offset this.GeometriesCount1 ); }
/// <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_GTA5_pc>>( this.LightAttributesPointer, // offset this.LightAttributesCount1 ); 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.DataType = reader.ReadUInt32(); this.DataLength = reader.ReadUInt32(); this.DataPointer = reader.ReadUInt64(); }
/// <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_Pointer = reader.ReadUInt64(); this.Unknown_20h_Pointer = reader.ReadUInt64(); this.Unknown_28h_Pointer = reader.ReadUInt64(); this.Unknown_30h = reader.ReadUInt32(); this.Unknown_34h = reader.ReadUInt32(); this.Unknown_38h = reader.ReadUInt32(); this.Unknown_3Ch = reader.ReadUInt32(); // read reference data this.Unknown_18h_Data = reader.ReadBlockAt<Unknown_F_007>( this.Unknown_18h_Pointer // offset ); this.Unknown_20h_Data = reader.ReadBlockAt<Unknown_F_007>( this.Unknown_20h_Pointer // offset ); this.Unknown_28h_Data = reader.ReadBlockAt<Unknown_F_007>( this.Unknown_28h_Pointer // 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(); }
/// <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.c1a = reader.ReadUInt16(); this.c1b = reader.ReadUInt16(); this.Unknown_24h = reader.ReadUInt32(); this.p2 = reader.ReadUInt64(); this.c2a = reader.ReadUInt16(); this.c2b = reader.ReadUInt16(); this.Unknown_34h = reader.ReadUInt32(); this.Unknown_38h = reader.ReadUInt32(); this.Unknown_3Ch = reader.ReadUInt32(); // read reference data this.p1_data = reader.ReadBlockAt<ResourceSimpleArray<ulong_r>>( this.p1, // offset this.c1a ); this.p2_data = reader.ReadBlockAt<ResourceSimpleArray<uint_r>>( this.p2, // offset this.c2a ); }
public uint Unknown_6Ch; // 0x00000000 /// <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.Unknown_10h = reader.ReadUInt32(); this.Unknown_14h = reader.ReadUInt32(); this.Unknown_18h = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.Unknown_20h = reader.ReadSingle(); this.Unknown_24h = reader.ReadSingle(); this.Unknown_28h = reader.ReadSingle(); this.Unknown_2Ch = reader.ReadSingle(); this.Unknown_30h = reader.ReadSingle(); this.Unknown_34h = reader.ReadSingle(); this.Unknown_38h = reader.ReadSingle(); this.Unknown_3Ch = reader.ReadSingle(); 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.Unknown_60h = reader.ReadUInt32(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h = reader.ReadUInt32(); this.Unknown_6Ch = reader.ReadUInt32(); }
/// <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.VertexBufferPointer = 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.IndexBufferPointer = reader.ReadUInt64(); 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.IndicesCount = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); this.VerticesCount = reader.ReadUInt16(); this.Unknown_62h = reader.ReadUInt16(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h_Pointer = reader.ReadUInt64(); this.VertexStride = reader.ReadUInt16(); this.Count1 = reader.ReadUInt16(); this.Unknown_74h = reader.ReadUInt32(); this.VertexDataPointer = reader.ReadUInt64(); 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(); // read reference data this.VertexBuffer = reader.ReadBlockAt<VertexBuffer_GTA5_pc>( this.VertexBufferPointer // offset ); this.IndexBuffer = reader.ReadBlockAt<IndexBuffer_GTA5_pc>( this.IndexBufferPointer // offset ); this.Unknown_68h_Data = reader.ReadBlockAt<ResourceSimpleArray<ushort_r>>( this.Unknown_68h_Pointer, // offset this.Count1 ); this.VertexData = reader.ReadBlockAt<VertexData_GTA5_pc>( this.VertexDataPointer, // offset this.VertexStride, this.VerticesCount ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.NameHash = reader.ReadUInt32(); this.DataOffset = reader.ReadUInt32(); this.DataType = reader.ReadUInt16(); this.Unknown_Ah = reader.ReadUInt16(); this.RefNameHash = reader.ReadUInt32(); }
/// <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.type = reader.ReadByte(); this.Unknown_9h = reader.ReadByte(); this.Unknown_Ah = reader.ReadUInt16(); this.Unknown_Ch = reader.ReadUInt32(); }
public uint Unknown_7Ch; // 0x00000000 /// <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_70h = reader.ReadUInt32(); this.Unknown_74h = reader.ReadUInt32(); this.Unknown_78h = reader.ReadUInt32(); this.Unknown_7Ch = reader.ReadUInt32(); }
/// <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_Pointer = reader.ReadUInt64(); this.Count1 = reader.ReadUInt16(); this.Count2 = reader.ReadUInt16(); this.Unknown_1Ch = reader.ReadUInt32(); this.BonesPointer = reader.ReadUInt64(); this.Unknown_28h_Pointer = reader.ReadUInt64(); this.Unknown_30h_Pointer = reader.ReadUInt64(); this.Unknown_38h_Pointer = reader.ReadUInt64(); this.Unknown_40h_Pointer = reader.ReadUInt64(); 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.ReadUInt16(); this.BonesCount = reader.ReadUInt16(); this.Count4 = reader.ReadUInt16(); this.Unknown_62h = reader.ReadUInt16(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h = reader.ReadUInt32(); this.Unknown_6Ch = reader.ReadUInt32(); // read reference data this.Unknown_10h_Data = reader.ReadBlockAt<ResourcePointerArray64<Unknown_D_001>>( this.Unknown_10h_Pointer, // offset this.Count1 ); this.Bones = reader.ReadBlockAt<ResourceSimpleArray<Bone_GTA5_pc>>( this.BonesPointer, // offset this.BonesCount ); this.Unknown_28h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>( this.Unknown_28h_Pointer, // offset this.BonesCount ); this.Unknown_30h_Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Matrix4>>( this.Unknown_30h_Pointer, // offset this.BonesCount ); this.Unknown_38h_Data = reader.ReadBlockAt<ResourceSimpleArray<ushort_r>>( this.Unknown_38h_Pointer, // offset this.BonesCount ); this.Unknown_40h_Data = reader.ReadBlockAt<ResourceSimpleArray<ushort_r>>( this.Unknown_40h_Pointer, // offset this.Count4 ); }
/// <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.cnt1 = reader.ReadUInt32(); this.Unknown_Ch = reader.ReadUInt32(); this.Data = reader.ReadBlock<ResourceSimpleArray<byte_r>>( cnt1 - 16 ); }
/// <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.SystemPagesCount = reader.ReadByte(); this.GraphicsPagesCount = reader.ReadByte(); this.Unknown_Ah = reader.ReadUInt16(); this.Unknown_Ch = reader.ReadUInt32(); this.Unknown_10h = reader.ReadUInt32(); }
/// <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.p1 = reader.ReadUInt64(); // read reference data this.p1data = reader.ReadBlockAt<Unknown_P_013>( 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.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.ReadUInt32(); this.len1 = reader.ReadUInt32(); this.len2 = reader.ReadUInt32(); this.len3 = reader.ReadUInt16(); this.Unknown_Eh = reader.ReadUInt16(); this.Data1 = reader.ReadBytes((int)len1); this.Data2 = reader.ReadBytes((int)len2); this.Data3 = reader.ReadBytes((int)len3); }
/// <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.PagesInfoPointer = reader.ReadUInt64(); // read reference data this.PagesInfo = reader.ReadBlockAt<PagesInfo_GTA5_pc>( this.PagesInfoPointer // offset ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.p1 = reader.ReadUInt64(); this.c1 = reader.ReadUInt32(); this.Unknown_Ch = reader.ReadUInt32(); // read reference data this.p1data = reader.ReadBlockAt<ResourceSimpleArray<Vertex>>( this.p1, // offset this.c1 ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.Hash = reader.ReadUInt32(); this.DataLength = reader.ReadUInt32(); this.DataPointer = reader.ReadUInt64(); // read reference data this.Data = reader.ReadBlockAt<ResourceSimpleArray<byte_r>>( this.DataPointer, // offset this.DataLength ); }
/// <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.VertexStride = reader.ReadUInt16(); this.Unknown_Ah = reader.ReadUInt16(); this.Unknown_Ch = reader.ReadUInt32(); this.DataPointer1 = reader.ReadUInt64(); this.VertexCount = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.DataPointer2 = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.InfoPointer = reader.ReadUInt64(); 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.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.Unknown_78h = reader.ReadUInt32(); this.Unknown_7Ch = reader.ReadUInt32(); // read reference data this.Info = reader.ReadBlockAt<VertexDeclaration_GTA5_pc>( this.InfoPointer // offset ); this.Data1 = reader.ReadBlockAt<VertexData_GTA5_pc>( this.DataPointer1, // offset this.VertexStride, this.VertexCount, this.Info ); this.Data2 = reader.ReadBlockAt<VertexData_GTA5_pc>( this.DataPointer2, // offset this.VertexStride, this.VertexCount, this.Info ); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.NameHash = reader.ReadUInt32(); this.Unknown_4h = reader.ReadUInt32(); this.EntriesPointer = reader.ReadUInt64(); this.EntriesCount = reader.ReadUInt32(); this.Unknown_14h = reader.ReadUInt32(); // read reference data this.Entries = reader.ReadBlockAt<ResourceSimpleArray<Unknown_META_003>>( this.EntriesPointer, // offset this.EntriesCount ); }
/// <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.ptr1 = reader.ReadUInt64(); this.c1 = reader.ReadUInt32(); this.Unknown_14h = reader.ReadUInt32(); // read reference data this.ptr1data = reader.ReadBlockAt<ResourceSimpleArray<Unknown_M_002_entry>>( this.ptr1, // offset this.c1 ); }
public IResourceSystemBlock GetType(ResourceDataReader reader, params object[] parameters) { reader.Position += 0; var type = reader.ReadUInt32(); reader.Position -= 4; switch (type) { case 3545841574: return new Unknown_M_003_maps(); case 16: return new Unknown_M_003_00000010(); case 3461354627: return new Unknown_M_003_objs(); case 7: return new Unknown_M_003_infos(); case 74: return new Unknown_M_003_0000004a(); case 1733268304: return new Unknown_M_003_674f9350(); case 4115341947: return new Unknown_M_003_f54b227b(); case 663891011: return new Unknown_M_003_27922c43(); case 164374718: return new Unknown_M_003_09cc28be(); case 2741784237: return new Unknown_M_003_a36c4ead(); case 975711773: return new Unknown_M_003_3a282e1d(); case 17: return new Unknown_M_003_00000011(); case 3805007828: return new Unknown_M_003_e2cbcfd4(); case 21: return new Unknown_M_003_00000015(); case 33: return new Unknown_M_003_00000021(); case 1860713439: return new Unknown_M_003_vehicles(); case 2716862120: return new Unknown_M_003_a1f006a8(); case 2085051229: return new Unknown_M_003_7c475b5d(); case 3985044770: return new Unknown_M_003_ed86f522(); case 1965932561: return new Unknown_M_003_752dc011(); case 1701774085: return new Unknown_M_003_656f0305(); case 847348117: return new Unknown_M_003_32818195(); default: throw new Exception("Unknown type"); } }
public uint Unknown_4h; // 0x00000000 /// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { // read structure data this.BlockIndex = reader.ReadUInt16(); this.OffsetDiv16 = reader.ReadUInt16(); this.Unknown_4h = reader.ReadUInt32(); }
/// <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.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(); }
/// <summary> /// Reads the data-block from a stream. /// </summary> public override void Read(ResourceDataReader reader, params object[] parameters) { base.Read(reader, parameters); this.p4 = reader.ReadUInt64(); this.unk1 = reader.ReadUInt16(); this.unk2 = reader.ReadUInt16(); 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(); this.p4data = reader.ReadBlockAt<Animation>( 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) { // read structure data this.VFT = reader.ReadUInt32(); this.Unknown_4h = reader.ReadUInt32(); this.IndicesCount = reader.ReadUInt32(); this.Unknown_Ch = reader.ReadUInt32(); this.IndicesPointer = reader.ReadUInt64(); 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.Unknown_58h = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); // read reference data this.Indices = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.IndicesPointer, // offset this.IndicesCount ); }
public uint Unknown_BCh; // 0x00000100 /// <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.BoneId = reader.ReadUInt16(); this.Unknown_Ah = reader.ReadUInt16(); 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.ReadSingle(); 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.ReadUInt32(); this.Unknown_48h = reader.ReadUInt32(); this.Unknown_4Ch = reader.ReadUInt32(); this.Unknown_50h = reader.ReadSingle(); this.Unknown_54h = reader.ReadSingle(); this.Unknown_58h = reader.ReadSingle(); this.MinX = reader.ReadSingle(); this.MinY = reader.ReadSingle(); this.MinZ = reader.ReadSingle(); this.MaxX = reader.ReadSingle(); this.MaxY = reader.ReadSingle(); this.MaxZ = reader.ReadSingle(); this.Unknown_74h = reader.ReadSingle(); this.Unknown_78h = reader.ReadSingle(); this.Unknown_7Ch = reader.ReadSingle(); this.Unknown_80h = reader.ReadSingle(); this.Unknown_84h = reader.ReadSingle(); this.Unknown_88h = reader.ReadSingle(); this.Unknown_8Ch = reader.ReadSingle(); this.Unknown_90h = reader.ReadSingle(); this.Unknown_94h = reader.ReadSingle(); this.Unknown_98h = reader.ReadSingle(); this.Unknown_9Ch = reader.ReadSingle(); this.Unknown_A0h = reader.ReadSingle(); this.Unknown_A4h = reader.ReadSingle(); this.Unknown_A8h = reader.ReadSingle(); this.Unknown_ACh = reader.ReadSingle(); this.Unknown_B0h = reader.ReadSingle(); this.Unknown_B4h = reader.ReadSingle(); this.Unknown_B8h = reader.ReadSingle(); this.Unknown_BCh = reader.ReadUInt32(); }
public uint Unknown_3Ch; // 0x00000000 /// <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.Unknown_30h = reader.ReadUInt32(); this.Unknown_34h = reader.ReadUInt32(); this.Unknown_38h = reader.ReadUInt32(); this.Unknown_3Ch = reader.ReadUInt32(); }
/// <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.Unknown_60h_Pointer = reader.ReadUInt64(); this.Count1 = reader.ReadUInt16(); this.Count2 = 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(); 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.LightAttributesPointer = reader.ReadUInt64(); this.LightAttributesCount = reader.ReadUInt16(); this.Count5 = reader.ReadUInt16(); this.Unknown_11Ch = reader.ReadUInt32(); this.Unknown_120h_Pointer = reader.ReadUInt64(); this.Unknown_128h = reader.ReadUInt32(); this.Unknown_12Ch = reader.ReadUInt32(); // read reference data this.Drawable = reader.ReadBlockAt <FragDrawable_GTA5_pc>( this.DrawablePointer // offset ); this.Unknown_28h_Data = reader.ReadBlockAt <ResourcePointerArray64 <FragDrawable_GTA5_pc> >( 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_60h_Data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_F_011> >( this.Unknown_60h_Pointer, // offset this.Count1 ); this.Unknown_A8h_Data = reader.ReadBlockAt <Unknown_F_004>( this.Unknown_A8h_Pointer // offset ); this.Unknown_E0h_Data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_F_006> >( this.Unknown_E0h_Pointer, // offset this.Count3 ); this.PhysicsLODGroup = reader.ReadBlockAt <FragPhysicsLODGroup_GTA5_pc>( this.PhysicsLODGroupPointer // offset ); this.Unknown_F8h_Data = reader.ReadBlockAt <FragDrawable_GTA5_pc>( this.Unknown_F8h_Pointer // offset ); this.LightAttributes = reader.ReadBlockAt <ResourceSimpleArray <LightAttributes_GTA5_pc> >( this.LightAttributesPointer, // offset this.LightAttributesCount ); this.Unknown_120h_Data = reader.ReadBlockAt <Unknown_F_003>( 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.TextureDictionaryPointer = reader.ReadUInt64(); this.ShadersPointer = reader.ReadUInt64(); this.ShadersCount1 = reader.ReadUInt16(); this.ShadersCount2 = reader.ReadUInt16(); 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(); // read reference data this.TextureDictionary = reader.ReadBlockAt <TextureDictionary>( this.TextureDictionaryPointer // offset ); this.Shaders = reader.ReadBlockAt <ResourcePointerArray64 <ShaderFX> >( this.ShadersPointer, // offset this.ShadersCount1 ); }
/// <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.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.Unknown_60h = reader.ReadUInt32(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h = reader.ReadUInt32(); this.Unknown_6Ch = reader.ReadUInt32(); this.VerticesPointer = reader.ReadUInt64(); this.Unknown_78h = reader.ReadUInt32(); this.Unknown_7Ch = reader.ReadUInt32(); this.IndicesPointer = reader.ReadUInt64(); this.p4 = reader.ReadUInt64(); 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 = reader.ReadUInt32(); this.Unknown_ACh = reader.ReadUInt32(); 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.ReadUInt32(); this.Unknown_DCh = reader.ReadUInt32(); this.Unknown_E0h = reader.ReadUInt32(); this.Unknown_E4h = reader.ReadUInt32(); this.Unknown_E8h = reader.ReadUInt32(); this.Unknown_ECh = reader.ReadUInt32(); this.Unknown_F0h = reader.ReadUInt32(); this.Unknown_F4h = reader.ReadUInt32(); this.Unknown_F8h = reader.ReadUInt32(); this.Unknown_FCh = reader.ReadUInt32(); 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.p5 = reader.ReadUInt64(); this.SectorTreePointer = reader.ReadUInt64(); this.PortalsPointer = reader.ReadUInt64(); this.p8 = 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.PortalsCount = reader.ReadUInt32(); this.c1 = reader.ReadUInt32(); this.Unknown_154h = reader.ReadUInt32(); this.Unknown_158h = reader.ReadUInt32(); this.Unknown_15Ch = reader.ReadUInt32(); this.Unknown_160h = reader.ReadUInt32(); this.Unknown_164h = reader.ReadUInt32(); this.Unknown_168h = reader.ReadUInt32(); this.Unknown_16Ch = reader.ReadUInt32(); // read reference data this.Vertices = reader.ReadBlockAt <VerticesList>( this.VerticesPointer // offset ); this.Indices = reader.ReadBlockAt <IndicesList>( this.IndicesPointer // offset ); this.AdjPolys = reader.ReadBlockAt <AdjPolysList>( this.p4 // offset ); this.Polys = reader.ReadBlockAt <PolysList>( this.p5 // offset ); this.SectorTree = reader.ReadBlockAt <Sector_GTA5_pc>( this.SectorTreePointer // offset ); this.Portals = reader.ReadBlockAt <ResourceSimpleArray <Portal> >( this.PortalsPointer, // offset this.PortalsCount ); this.p8data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.p8, // offset this.c1 ); }
/// <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.p3 = reader.ReadUInt64(); this.c3a = reader.ReadUInt16(); this.c3b = reader.ReadUInt16(); this.Unknown_44h = reader.ReadUInt32(); 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.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.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 = reader.ReadUInt32(); this.Unknown_ACh = reader.ReadUInt32(); this.Unknown_B0h = reader.ReadUInt32(); this.Unknown_B4h = reader.ReadUInt32(); this.Unknown_B8h = reader.ReadUInt32(); this.Unknown_BCh = 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.pref = reader.ReadUInt64(); this.refcnt1 = reader.ReadUInt16(); this.refcnt2 = reader.ReadUInt16(); this.Unknown_39Ch = reader.ReadUInt32(); this.Unknown_3A0h = reader.ReadUInt32(); this.Unknown_3A4h = reader.ReadUInt32(); this.Unknown_3A8h = reader.ReadUInt32(); this.Unknown_3ACh = reader.ReadUInt32(); this.Unknown_3B0h = reader.ReadUInt32(); this.Unknown_3B4h = reader.ReadUInt32(); this.Unknown_3B8h = reader.ReadUInt32(); this.Unknown_3BCh = reader.ReadUInt32(); // read reference data this.Name = reader.ReadBlockAt <string_r>( this.NamePointer // offset ); this.p3data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_008> >( this.p3, // offset this.c3b ); this.p4data = reader.ReadBlockAt <Unknown_P_005>( this.p4 // offset ); this.refs = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_P_018> >( this.pref, // offset this.refcnt2 ); }
public override void Read(ResourceDataReader reader, params object[] parameters) { int cnt = Convert.ToInt32(parameters[0]); Parameters = new List <ShaderParameter>(); for (int i = 0; i < cnt; i++) { Parameters.Add(reader.ReadBlock <ShaderParameter>()); } int offset = 0; for (int i = 0; i < cnt; i++) { var p = Parameters[i]; // read reference data switch (p.DataType) { case 0: offset += 0; p.Data = reader.ReadBlockAt <Texture>( p.DataPointer // offset ); break; case 1: offset += 16; p.Data = reader.ReadBlockAt <RAGE_Vector4>( p.DataPointer // offset ); break; //case 2: // offset += 32; // p.Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Vector4>>( // p.DataPointer, // offset // 2 // ); // break; //case 4: // offset += 64; // p.Data = reader.ReadBlockAt<ResourceSimpleArray<RAGE_Vector4>>( // p.DataPointer, // offset // 4 // ); // break; default: offset += 16 * p.DataType; p.Data = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Vector4> >( p.DataPointer, // offset p.DataType ); break; } } reader.Position += offset; Hashes = new List <uint>(); for (int i = 0; i < cnt; i++) { Hashes.Add(reader.ReadUInt32()); } }
public uint Unknown_7Ch; // 0x00000000 /// <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.ModelHash = 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.PositionX = reader.ReadSingle(); this.PositionY = reader.ReadSingle(); this.PositionZ = reader.ReadSingle(); this.Unknown_2Ch = reader.ReadSingle(); this.Unknown_30h = reader.ReadSingle(); this.Unknown_34h = reader.ReadSingle(); this.Unknown_38h = reader.ReadSingle(); this.Unknown_3Ch = reader.ReadSingle(); 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.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.Unknown_78h = reader.ReadUInt32(); this.Unknown_7Ch = reader.ReadUInt32(); }
public uint Unknown_18Ch; // 0x00000000 /// <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.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.ReadBlock <ResourceSimpleList64 <RAGE_Vector4> >(); this.Unknown_60h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_70h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_80h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_90h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_A0h = reader.ReadBlock <ResourceSimpleList64 <RAGE_Vector4> >(); this.Unknown_B0h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_C0h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_D0h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_E0h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_F0h = reader.ReadUInt32(); this.Unknown_F4h = reader.ReadUInt32(); this.Unknown_F8h = reader.ReadUInt32(); this.Unknown_FCh = reader.ReadUInt32(); 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.Unknown_120h = reader.ReadUInt32(); this.Unknown_124h = reader.ReadUInt32(); this.Unknown_128h = reader.ReadUInt32(); this.Unknown_12Ch = reader.ReadUInt32(); this.Unknown_130h = reader.ReadUInt32(); this.Unknown_134h = reader.ReadUInt32(); 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(); this.Unknown_150h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_160h = reader.ReadBlock <ResourceSimpleList64 <ushort_r> >(); this.Unknown_170h = reader.ReadUInt32(); 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.Unknown_188h = reader.ReadUInt32(); this.Unknown_18Ch = reader.ReadUInt32(); }
/// <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.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_Pointer = reader.ReadUInt64(); this.Count1 = reader.ReadUInt16(); this.Count2 = reader.ReadUInt16(); this.Unknown_5Ch = reader.ReadUInt32(); this.Unknown_60h_Pointer = reader.ReadUInt64(); this.Count3 = reader.ReadUInt16(); this.Count4 = reader.ReadUInt16(); this.Unknown_6Ch = reader.ReadUInt32(); this.Unknown_70h_Pointer = reader.ReadUInt64(); this.Count5 = reader.ReadUInt16(); this.Count6 = reader.ReadUInt16(); this.Unknown_7Ch = reader.ReadUInt32(); this.Unknown_80h_Pointer = reader.ReadUInt64(); this.Count7 = reader.ReadUInt16(); this.Count8 = reader.ReadUInt16(); this.Unknown_8Ch = reader.ReadUInt32(); this.Unknown_90h_Pointer = reader.ReadUInt64(); this.Count9 = reader.ReadUInt16(); this.Count10 = reader.ReadUInt16(); this.Unknown_9Ch = reader.ReadUInt32(); this.Unknown_A0h_Pointer = reader.ReadUInt64(); this.Count11 = reader.ReadUInt16(); this.Count12 = reader.ReadUInt16(); this.Unknown_ACh = reader.ReadUInt32(); this.Unknown_B0h_Pointer = reader.ReadUInt64(); this.Count13 = reader.ReadUInt16(); this.Count14 = reader.ReadUInt16(); this.Unknown_BCh = reader.ReadUInt32(); this.Unknown_C0h_Pointer = reader.ReadUInt64(); this.Count15 = reader.ReadUInt16(); this.Count16 = reader.ReadUInt16(); this.Unknown_CCh = reader.ReadUInt32(); this.Unknown_D0h_Pointer = reader.ReadUInt64(); this.Count17 = reader.ReadUInt16(); this.Count18 = reader.ReadUInt16(); this.Unknown_DCh = reader.ReadUInt32(); this.Unknown_E0h_Pointer = reader.ReadUInt64(); this.Count19 = reader.ReadUInt16(); this.Count20 = reader.ReadUInt16(); this.Unknown_ECh = reader.ReadUInt32(); this.Unknown_F0h = reader.ReadUInt32(); this.Unknown_F4h = reader.ReadUInt32(); this.Unknown_F8h = reader.ReadUInt32(); this.Unknown_FCh = reader.ReadUInt32(); 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.Unknown_120h = reader.ReadUInt32(); this.Unknown_124h = reader.ReadUInt32(); this.Unknown_128h = reader.ReadUInt32(); this.Unknown_12Ch = reader.ReadUInt32(); this.Unknown_130h = reader.ReadUInt32(); this.Unknown_134h = reader.ReadUInt32(); 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(); this.Unknown_150h_Pointer = reader.ReadUInt64(); this.Count21 = reader.ReadUInt16(); this.Count22 = reader.ReadUInt16(); this.Unknown_15Ch = reader.ReadUInt32(); this.Unknown_160h_Pointer = reader.ReadUInt64(); this.Count23 = reader.ReadUInt16(); this.Count24 = reader.ReadUInt16(); this.Unknown_16Ch = reader.ReadUInt32(); this.Unknown_170h = reader.ReadUInt32(); 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.Unknown_188h = reader.ReadUInt32(); this.Unknown_18Ch = reader.ReadUInt32(); // read reference data this.Unknown_50h_Data = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Vector4> >( this.Unknown_50h_Pointer, // offset this.Count1 ); this.Unknown_60h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_60h_Pointer, // offset this.Count1 ); this.Unknown_70h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_70h_Pointer, // offset this.Count1 ); this.Unknown_80h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_80h_Pointer, // offset this.Count1 ); this.Unknown_90h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_90h_Pointer, // offset this.Count1 ); this.Unknown_A0h_Data = reader.ReadBlockAt <ResourceSimpleArray <RAGE_Vector4> >( this.Unknown_A0h_Pointer, // offset this.Count11 ); this.Unknown_B0h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_B0h_Pointer, // offset this.Count13 ); this.Unknown_C0h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_C0h_Pointer, // offset this.Count15 ); this.Unknown_D0h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_D0h_Pointer, // offset this.Count17 ); this.Unknown_E0h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_E0h_Pointer, // offset this.Count19 ); this.Unknown_150h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_150h_Pointer, // offset this.Count21 ); this.Unknown_160h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_160h_Pointer, // offset this.Count23 ); }
/// <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.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.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>( this.BoundPointer // offset ); }
public uint Unknown_5Ch; // 0x00000000 /// <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.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.Unknown_58h = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); }
/// <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.ptr2 = reader.ReadUInt64(); this.ptr3 = reader.ReadUInt64(); this.ptr4 = reader.ReadUInt64(); this.Unknown_38h = reader.ReadUInt32(); this.Unknown_3Ch = reader.ReadUInt32(); this.ptr5 = reader.ReadUInt64(); this.c1 = reader.ReadUInt16(); this.c2 = reader.ReadUInt16(); this.c3 = reader.ReadUInt32(); 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.ptr2data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_001> >( this.ptr2, // offset this.c1 ); this.ptr3data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_002> >( this.ptr3, // offset this.c2 ); this.ptr4data = reader.ReadBlockAt <ResourceSimpleArray <Unknown_M_003> >( this.ptr4, // offset this.c3 ); this.ptr5data = reader.ReadBlockAt <Unknown_M_004>( this.ptr5 // 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(); }
public uint Unknown_8Ch; // 0x00000000 /// <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.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(); this.Unknown_70h = reader.ReadBlock <ResourceSimpleList64 <Unknown_P_011> >(); this.Unknown_80h = reader.ReadUInt32(); this.Unknown_84h = reader.ReadUInt32(); this.Unknown_88h = reader.ReadUInt32(); this.Unknown_8Ch = reader.ReadUInt32(); }
/// <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_40h = reader.ReadUInt32(); this.Unknown_44h = reader.ReadUInt32(); this.Unknown_48h = reader.ReadUInt32(); this.Unknown_4Ch = reader.ReadUInt32(); this.Width = reader.ReadUInt16(); this.Height = reader.ReadUInt16(); this.Unknown_54h = reader.ReadUInt16(); this.Stride = reader.ReadUInt16(); this.Format = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadByte(); this.Levels = reader.ReadByte(); this.Unknown_5Eh = reader.ReadUInt16(); this.Unknown_60h = reader.ReadUInt32(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h = reader.ReadUInt32(); this.Unknown_6Ch = reader.ReadUInt32(); this.DataPointer = reader.ReadUInt64(); 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(); // read reference data this.Data = reader.ReadBlockAt <TextureData_GTA5_pc>( this.DataPointer, // offset this.Format, this.Width, this.Height, this.Levels, this.Stride ); }
/// <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.ReadBlock <ResourceSimpleList64 <Unknown_C_001> >(); this.ControllerPointer = reader.ReadUInt64(); this.BoundPointer = reader.ReadUInt64(); this.Unknown_30h = reader.ReadBlock <ResourceSimpleList64 <uint_r> >(); 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.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.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.ReadBlock <ResourceSimpleList64 <uint_r> >(); this.Unknown_A0h = reader.ReadUInt32(); this.Unknown_A4h = reader.ReadUInt32(); this.Unknown_A8h = reader.ReadUInt32(); this.Unknown_ACh = reader.ReadUInt32(); 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(); // read reference data this.Controller = reader.ReadBlockAt <CharacterClothController>( this.ControllerPointer // 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) { // 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 ); }
public uint Unknown_ECh; // 0x00000000 /// <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.KeyframeProps = reader.ReadBlock <ResourcePointerList64 <KeyframeProp> >(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.KeyframeProp0 = reader.ReadBlock <KeyframeProp>(); 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.ReadUInt32(); this.Unknown_DCh = reader.ReadUInt32(); this.Unknown_E0h = reader.ReadUInt32(); this.Unknown_E4h = reader.ReadUInt32(); this.Unknown_E8h = reader.ReadUInt32(); this.Unknown_ECh = reader.ReadUInt32(); }
/// <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.VertexStride = reader.ReadUInt16(); this.Unknown_Ah = reader.ReadUInt16(); this.Unknown_Ch = reader.ReadUInt32(); this.DataPointer1 = reader.ReadUInt64(); this.VertexCount = reader.ReadUInt32(); this.Unknown_1Ch = reader.ReadUInt32(); this.DataPointer2 = reader.ReadUInt64(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.InfoPointer = reader.ReadUInt64(); 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.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.Unknown_78h = reader.ReadUInt32(); this.Unknown_7Ch = reader.ReadUInt32(); // read reference data this.Info = reader.ReadBlockAt <VertexDeclaration_GTA5_pc>( this.InfoPointer // offset ); this.Data1 = reader.ReadBlockAt <VertexData_GTA5_pc>( this.DataPointer1, // offset this.VertexStride, this.VertexCount, this.Info ); this.Data2 = reader.ReadBlockAt <VertexData_GTA5_pc>( this.DataPointer2, // offset this.VertexStride, this.VertexCount, this.Info ); }
/// <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.VertexBufferPointer = 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.IndexBufferPointer = reader.ReadUInt64(); 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.IndicesCount = reader.ReadUInt32(); this.Unknown_5Ch = reader.ReadUInt32(); this.VerticesCount = reader.ReadUInt16(); this.Unknown_62h = reader.ReadUInt16(); this.Unknown_64h = reader.ReadUInt32(); this.Unknown_68h_Pointer = reader.ReadUInt64(); this.VertexStride = reader.ReadUInt16(); this.Count1 = reader.ReadUInt16(); this.Unknown_74h = reader.ReadUInt32(); this.VertexDataPointer = reader.ReadUInt64(); 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(); // read reference data this.VertexBuffer = reader.ReadBlockAt <VertexBuffer_GTA5_pc>( this.VertexBufferPointer // offset ); this.IndexBuffer = reader.ReadBlockAt <IndexBuffer_GTA5_pc>( this.IndexBufferPointer // offset ); this.Unknown_68h_Data = reader.ReadBlockAt <ResourceSimpleArray <ushort_r> >( this.Unknown_68h_Pointer, // offset this.Count1 ); this.VertexData = reader.ReadBlockAt <VertexData_GTA5_pc>( this.VertexDataPointer, // offset this.VertexStride, this.VerticesCount ); }
/// <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.p1 = reader.ReadUInt64(); this.c1 = reader.ReadUInt16(); this.c2 = reader.ReadUInt16(); this.Unknown_4Ch = reader.ReadUInt32(); this.p2 = reader.ReadUInt64(); this.c3 = reader.ReadUInt16(); this.c4 = reader.ReadUInt16(); this.Unknown_5Ch = reader.ReadUInt32(); // read reference data this.p1data = reader.ReadBlockAt <ResourcePointerArray64 <Unknown_CL_300> >( this.p1, // offset this.c1 ); this.p2data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >( this.p2, // offset this.c3 ); }
public uint Unknown_16Ch; // 0x00000000 /// <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.KeyframeProps = reader.ReadBlock <ResourcePointerList64 <KeyframeProp> >(); this.Unknown_20h = reader.ReadUInt32(); this.Unknown_24h = reader.ReadUInt32(); this.Unknown_28h = reader.ReadUInt32(); this.Unknown_2Ch = reader.ReadUInt32(); this.KeyframeProp0 = reader.ReadBlock <KeyframeProp>(); this.KeyframeProp1 = reader.ReadBlock <KeyframeProp>(); this.Unknown_150h = reader.ReadUInt32(); this.Unknown_154h = reader.ReadUInt32(); this.Unknown_158h = reader.ReadUInt32(); this.Unknown_15Ch = reader.ReadUInt32(); this.Unknown_160h = reader.ReadUInt32(); this.Unknown_164h = reader.ReadUInt32(); this.Unknown_168h = reader.ReadUInt32(); this.Unknown_16Ch = reader.ReadUInt32(); }
/// <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_70h = reader.ReadUInt32(); this.Unknown_74h = reader.ReadUInt32(); this.Unknown_78h_Pointer = reader.ReadUInt64(); this.Unknown_80h = reader.ReadUInt32(); this.Count1 = reader.ReadUInt32(); this.PolygonsPointer = reader.ReadUInt64(); this.Unknown_90h = reader.ReadUInt32(); this.Unknown_94h = reader.ReadUInt32(); this.Unknown_98h = reader.ReadUInt32(); this.Unknown_9Ch = reader.ReadUInt32(); this.Unknown_A0h = reader.ReadSingle(); this.Unknown_A4h = reader.ReadSingle(); this.Unknown_A8h = reader.ReadSingle(); this.Unknown_ACh = reader.ReadSingle(); this.VerticesPointer = reader.ReadUInt64(); this.Unknown_B8h_Pointer = reader.ReadUInt64(); this.Unknown_C0h_Pointer = reader.ReadUInt64(); this.Unknown_C8h_Pointer = reader.ReadUInt64(); this.VerticesCount = reader.ReadUInt32(); this.PolygonsCount = reader.ReadUInt32(); this.Unknown_D8h = reader.ReadUInt32(); this.Unknown_DCh = reader.ReadUInt32(); this.Unknown_E0h = reader.ReadUInt32(); this.Unknown_E4h = reader.ReadUInt32(); this.Unknown_E8h = reader.ReadUInt32(); this.Unknown_ECh = reader.ReadUInt32(); this.MaterialsPointer = 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.Unknown_110h = reader.ReadUInt32(); this.Unknown_114h = reader.ReadUInt32(); this.PolygonMaterialIndicesPointer = reader.ReadUInt64(); this.MaterialsCount = reader.ReadByte(); this.Count2 = reader.ReadByte(); this.Unknown_122h = reader.ReadUInt16(); this.Unknown_124h = reader.ReadUInt32(); this.Unknown_128h = reader.ReadUInt32(); this.Unknown_12Ch = reader.ReadUInt32(); // read reference data this.p1data = reader.ReadBlockAt <ResourceSimpleArray <BoundVertex_GTA5_pc> >( this.Unknown_78h_Pointer, // offset this.VerticesCount ); this.Polygons = reader.ReadBlockAt <ResourceSimpleArray <BoundPolygon_GTA5_pc> >( this.PolygonsPointer, // offset this.PolygonsCount ); this.Vertices = reader.ReadBlockAt <ResourceSimpleArray <BoundVertex_GTA5_pc> >( this.VerticesPointer, // offset this.VerticesCount ); this.Unknown_B8h_Data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >( this.Unknown_B8h_Pointer, // offset this.VerticesCount ); this.Unknown_C0h_Data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >( this.Unknown_C0h_Pointer, // offset 8 ); this.Unknown_C8h_Data = reader.ReadBlockAt <ResourceSimpleArrayArray64 <uint_r> >( this.Unknown_C8h_Pointer, // offset 8, this.Unknown_C0h_Data ); this.Materials = reader.ReadBlockAt <ResourceSimpleArray <ulong_r> >( this.MaterialsPointer, // offset this.MaterialsCount ); this.Unknown_F8h_Data = reader.ReadBlockAt <ResourceSimpleArray <uint_r> >( this.Unknown_F8h_Pointer, // offset this.Count2 ); this.PolygonMaterialIndices = reader.ReadBlockAt <ResourceSimpleArray <byte_r> >( this.PolygonMaterialIndicesPointer, // offset this.PolygonsCount ); }
/// <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 ); }
public uint Unknown_ACh; // 0xCCBEBC20 /// <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_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.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(); 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 = reader.ReadUInt32(); this.Unknown_ACh = reader.ReadUInt32(); }
public override void Read(ResourceDataReader reader, params object[] parameters) { int stride = Convert.ToInt32(parameters[0]); int count = Convert.ToInt32(parameters[1]); var info = (VertexDeclaration_GTA5_pc)parameters[2]; this.cnt = count; this.info = info; bool[] IsUsed = new bool[16]; for (int i = 0; i < 16; i++) { IsUsed[i] = ((info.Flags >> i) & 0x1) == 1; } Types = new uint[16]; for (int i = 0; i < 16; i++) { Types[i] = (uint)((info.Types >> (int)(4 * i)) & 0xF); } VertexData = new object[16]; for (int i = 0; i < 16; i++) { if (IsUsed[i]) { switch (Types[i]) { case 0: VertexData[i] = new ushort[1 * count]; break; case 1: VertexData[i] = new ushort[2 * count]; break; case 2: VertexData[i] = new ushort[3 * count]; break; case 3: VertexData[i] = new ushort[4 * count]; break; case 4: VertexData[i] = new float[1 * count]; break; case 5: VertexData[i] = new float[2 * count]; break; case 6: VertexData[i] = new float[3 * count]; break; case 7: VertexData[i] = new float[4 * count]; break; case 8: VertexData[i] = new uint[count]; break; case 9: VertexData[i] = new uint[count]; break; case 10: VertexData[i] = new uint[count]; break; default: throw new Exception(); } } } long pos = reader.Position; // read... for (int i = 0; i < count; i++) { for (int k = 0; k < 16; k++) { if (IsUsed[k]) { switch (Types[k]) { // float16 case 0: { var buf = VertexData[k] as ushort[]; buf[i * 1 + 0] = reader.ReadUInt16(); break; } case 1: { var buf = VertexData[k] as ushort[]; buf[i * 2 + 0] = reader.ReadUInt16(); buf[i * 2 + 1] = reader.ReadUInt16(); break; } case 2: { var buf = VertexData[k] as ushort[]; buf[i * 3 + 0] = reader.ReadUInt16(); buf[i * 3 + 1] = reader.ReadUInt16(); buf[i * 3 + 2] = reader.ReadUInt16(); break; } case 3: { var buf = VertexData[k] as ushort[]; buf[i * 4 + 0] = reader.ReadUInt16(); buf[i * 4 + 1] = reader.ReadUInt16(); buf[i * 4 + 2] = reader.ReadUInt16(); buf[i * 4 + 3] = reader.ReadUInt16(); break; } // float32 case 4: { var buf = VertexData[k] as float[]; buf[i * 1 + 0] = reader.ReadSingle(); break; } case 5: { var buf = VertexData[k] as float[]; buf[i * 2 + 0] = reader.ReadSingle(); buf[i * 2 + 1] = reader.ReadSingle(); break; } case 6: { var buf = VertexData[k] as float[]; buf[i * 3 + 0] = reader.ReadSingle(); buf[i * 3 + 1] = reader.ReadSingle(); buf[i * 3 + 2] = reader.ReadSingle(); break; } case 7: { var buf = VertexData[k] as float[]; buf[i * 4 + 0] = reader.ReadSingle(); buf[i * 4 + 1] = reader.ReadSingle(); buf[i * 4 + 2] = reader.ReadSingle(); buf[i * 4 + 3] = reader.ReadSingle(); break; } case 8: case 9: case 10: { var buf = VertexData[k] as uint[]; buf[i * 1 + 0] = reader.ReadUInt32(); break; } default: throw new Exception(); } } } } this.length = stride * count; }