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.ReadSingle();
            this.Unknown_14h = reader.ReadSingle();
            this.Unknown_18h = reader.ReadSingle();
            this.Unknown_1Ch = reader.ReadSingle();
            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();
        }
Esempio n. 2
0
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.x1 = reader.ReadSingle();
     this.x2 = reader.ReadSingle();
     this.x3 = reader.ReadSingle();
     this.x4 = reader.ReadSingle();
 }
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.PositionX = reader.ReadSingle();
     this.PositionY = reader.ReadSingle();
     this.PositionZ = reader.ReadSingle();
     this.Unknown_Ch = reader.ReadUInt16();
     this.Unknown_Eh = reader.ReadUInt16();
     this.Unknown_10h = reader.ReadUInt16();
     this.Unknown_12h = reader.ReadUInt16();
 }
        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();
        }
Esempio n. 5
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);
            this.AnimationPointer = reader.ReadUInt64();
            this.Unknown_58h      = reader.ReadSingle();
            this.Unknown_5Ch      = reader.ReadSingle();
            this.Unknown_60h      = reader.ReadSingle();
            this.Unknown_64h      = reader.ReadUInt32();
            this.Unknown_68h      = reader.ReadUInt32();
            this.Unknown_6Ch      = reader.ReadUInt32();

            this.Animation = reader.ReadBlockAt <Animation>(
                this.AnimationPointer // offset
                );
        }
Esempio n. 6
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_10h   = reader.ReadUInt32();
            this.Unknown_14h   = reader.ReadUInt32();
            this.Unknown_18h   = reader.ReadSingle();
            this.Unknown_1Ch   = reader.ReadUInt32();
            this.NamePointer   = reader.ReadUInt64();
            this.Unknown_28h   = reader.ReadUInt64();
            this.VFTx2         = reader.ReadUInt64();
            this.EventEmitters = reader.ReadBlock <ResourcePointerList64 <EventEmitter> >();
            this.p4            = reader.ReadUInt64();
            this.Unknown_50h   = reader.ReadUInt32();
            this.Unknown_54h   = reader.ReadUInt32();
            this.Unknown_58h   = reader.ReadUInt32();
            this.Unknown_5Ch   = reader.ReadUInt32();
            this.Unknown_60h   = reader.ReadVector4();
            this.Unknown_70h   = reader.ReadVector4();
            this.Unknown_80h   = reader.ReadSingle();
            this.Unknown_84h   = reader.ReadSingle();
            this.Unknown_88h   = reader.ReadUInt32();
            this.Unknown_8Ch   = reader.ReadUInt32();
            this.Unknown_90h   = reader.ReadVector4();
            this.Unknown_A0h   = reader.ReadVector4();
            this.Unknown_B0h   = reader.ReadVector4();
            this.KeyframeProp0 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp1 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp2 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp3 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp4 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProps = reader.ReadBlock <ResourcePointerList64 <KeyframeProp> >();
            this.Unknown_3A0h  = reader.ReadUInt32();
            this.Unknown_3A4h  = reader.ReadUInt32();
            this.Unknown_3A8h  = reader.ReadSingle();
            this.Unknown_3ACh  = reader.ReadUInt32();
            this.Unknown_3B0h  = reader.ReadUInt64();
            this.Unknown_3B8h  = reader.ReadUInt64();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.p4data = reader.ReadBlockAt <EvolutionParameters>(
                this.p4 // offset
                );
        }
        public byte Unknown_3Eh; // 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.RotationRate      = reader.ReadSingle();
            this.AngleThreshold    = reader.ReadSingle();
            this.Unknown_18h       = reader.ReadUInt64();
            this.ExtraForce        = reader.ReadVector4();
            this.Flags             = (ClothTuneFlags)reader.ReadUInt32();
            this.Weight            = reader.ReadSingle();
            this.DistanceThreshold = reader.ReadSingle();
            this.PinVert           = reader.ReadByte();
            this.NonPinVert0       = reader.ReadByte();
            this.NonPinVert1       = reader.ReadByte();
            this.Unknown_3Eh       = reader.ReadByte();
        }
Esempio n. 8
0
        public uint Unknown_6Ch; // 0x00000000

        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            this.Animations  = reader.ReadBlock <ResourceSimpleList64 <ClipAnimationsEntry> >();
            this.Duration    = reader.ReadSingle();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();
        }
Esempio n. 9
0
        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.CapsuleHalfHeight = reader.ReadSingle();
            this.Unknown_74h       = reader.ReadUInt32();
            this.Unknown_78h       = reader.ReadUInt32();
            this.Unknown_7Ch       = reader.ReadUInt32();
        }
Esempio n. 10
0
        public uint Unknown_2Ch; // 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.Value       = reader.ReadSingle();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt32();
            this.Unknown_2Ch = 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.TriIndices   = reader.ReadBlock <SimpleList64 <ushort> >();
            this.OriginalPos  = reader.ReadBlock <SimpleList64 <Vector4> >();
            this.Unknown_A0h  = reader.ReadSingle();
            this.Unknown_A4h  = reader.ReadUInt32();
            this.Unknown_A8h  = reader.ReadUInt32();
            this.Unknown_ACh  = reader.ReadUInt32();
            this.BoneIndexMap = reader.ReadBlock <SimpleList64 <uint> >();
            this.BindingInfo  = reader.ReadBlock <ResourceSimpleList64 <BindingInfo> >();
            this.Unknown_D0h  = reader.ReadUInt32();
            this.Unknown_D4h  = reader.ReadUInt32();
            this.Unknown_D8h  = reader.ReadUInt32();
            this.Unknown_DCh  = reader.ReadSingle();
            this.BoneIDMap    = reader.ReadBlock <SimpleList64 <uint> >();
        }
Esempio n. 12
0
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.ShaderGroupPointer           = reader.ReadUInt64();
            this.Unknown_18h                  = reader.ReadUInt64();
            this.BoundingCenter               = reader.ReadVector3();
            this.BoundingSphereRadius         = reader.ReadSingle();
            this.BoundingBoxMin               = reader.ReadVector4();
            this.BoundingBoxMax               = reader.ReadVector4();
            this.DrawableModelsHighPointer    = reader.ReadUInt64();
            this.DrawableModelsMediumPointer  = reader.ReadUInt64();
            this.DrawableModelsLowPointer     = reader.ReadUInt64();
            this.DrawableModelsVeryLowPointer = reader.ReadUInt64();
            this.LodDistanceHigh              = reader.ReadSingle();
            this.LodDistanceMedium            = reader.ReadSingle();
            this.LodDistanceLow               = reader.ReadSingle();
            this.LodDistanceVeryLow           = reader.ReadSingle();
            this.DrawBucketMaskHigh           = reader.ReadUInt32();
            this.DrawBucketMaskMedium         = reader.ReadUInt32();
            this.DrawBucketMaskLow            = reader.ReadUInt32();
            this.DrawBucketMaskVeryLow        = reader.ReadUInt32();
            this.Unknown_40h                  = reader.ReadUInt64();
            this.Unknown_48h                  = reader.ReadUInt64();
            this.Unknown_50h                  = reader.ReadUInt64();
            this.NamePointer                  = reader.ReadUInt64();
            this.Unknown_60h                  = reader.ReadUInt64();
            this.BoundPointer                 = reader.ReadUInt64();
            this.Unknown_70h_Pointer          = reader.ReadUInt64();
            this.Unknown_78h                  = reader.ReadUInt64();

            // read reference data
            this.ShaderGroup           = reader.ReadBlockAt <ShaderGroup>(this.ShaderGroupPointer);
            this.DrawableModelsHigh    = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel> >(this.DrawableModelsHighPointer);
            this.DrawableModelsMedium  = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel> >(this.DrawableModelsMediumPointer);
            this.DrawableModelsLow     = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel> >(this.DrawableModelsLowPointer);
            this.DrawableModelsVeryLow = reader.ReadBlockAt <ResourcePointerList64 <DrawableModel> >(this.DrawableModelsVeryLowPointer);
            this.Name  = reader.ReadBlockAt <string_r>(NamePointer);
            this.Bound = reader.ReadBlockAt <Bound>(BoundPointer);
        }
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.Time = reader.ReadUInt32();
     this.VelocityX = reader.ReadUInt16();
     this.VelocityY = reader.ReadUInt16();
     this.VelocityZ = reader.ReadUInt16();
     this.RightX = reader.ReadByte();
     this.RightY = reader.ReadByte();
     this.RightZ = reader.ReadByte();
     this.TopX = reader.ReadByte();
     this.TopY = reader.ReadByte();
     this.TopZ = reader.ReadByte();
     this.SteeringAngle = reader.ReadByte();
     this.GasPedalPower = reader.ReadByte();
     this.BrakePedalPower = reader.ReadByte();
     this.HandbrakeUsed = reader.ReadByte();
     this.PositionX = reader.ReadSingle();
     this.PositionY = reader.ReadSingle();
     this.PositionZ = reader.ReadSingle();
 }
Esempio n. 14
0
        /// <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.Type                 = reader.ReadByte();
            this.Unknown_11h          = reader.ReadByte();
            this.Unknown_12h          = reader.ReadUInt16();
            this.RadiusAroundCentroid = reader.ReadSingle();
            this.Unknown_18h          = reader.ReadUInt32();
            this.Unknown_1Ch          = reader.ReadUInt32();
            this.BoundingBoxMax       = reader.ReadVector3();
            this.Margin               = reader.ReadSingle();
            this.BoundingBoxMin       = reader.ReadVector3();
            this.RefCount             = reader.ReadUInt32();
            this.CentroidOffset       = reader.ReadVector3();
            this.MaterialId0          = reader.ReadUInt32();
            this.CGOffset             = reader.ReadVector3();
            this.MaterialId1          = reader.ReadUInt32();
            this.VolumeDistribution   = reader.ReadVector4();
        }
Esempio n. 15
0
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.Time            = reader.ReadUInt32();
     this.VelocityX       = reader.ReadUInt16();
     this.VelocityY       = reader.ReadUInt16();
     this.VelocityZ       = reader.ReadUInt16();
     this.RightX          = reader.ReadByte();
     this.RightY          = reader.ReadByte();
     this.RightZ          = reader.ReadByte();
     this.TopX            = reader.ReadByte();
     this.TopY            = reader.ReadByte();
     this.TopZ            = reader.ReadByte();
     this.SteeringAngle   = reader.ReadByte();
     this.GasPedalPower   = reader.ReadByte();
     this.BrakePedalPower = reader.ReadByte();
     this.HandbrakeUsed   = reader.ReadByte();
     this.PositionX       = reader.ReadSingle();
     this.PositionY       = reader.ReadSingle();
     this.PositionZ       = reader.ReadSingle();
 }
Esempio n. 16
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.VFT                    = reader.ReadUInt64();
            this.Index                  = reader.ReadUInt32();
            this.Unknown_Ch             = reader.ReadUInt32();
            this.Unknown_10h            = reader.ReadUInt32();
            this.Unknown_14h            = reader.ReadSingle();
            this.EvolutionParamsPointer = reader.ReadUInt64();
            this.Unknown_20h            = reader.ReadUInt64();
            this.Unknown_28h            = reader.ReadUInt64();
            this.EmitterNamePointer     = reader.ReadUInt64();
            this.ParticleNamePointer    = reader.ReadUInt64();
            this.EmitterRulePointer     = reader.ReadUInt64();
            this.ParticleRulePointer    = reader.ReadUInt64();
            this.MoveSpeedScale         = reader.ReadSingle();
            this.MoveSpeedScaleModifier = reader.ReadSingle();
            this.ParticleScale          = reader.ReadSingle();
            this.ParticleScaleModifier  = reader.ReadSingle();
            this.Unknown_60h            = reader.ReadUInt32();
            this.Unknown_64h            = reader.ReadUInt32();
            this.Unknown_68h            = reader.ReadUInt64();

            // read reference data
            this.EvolutionParams = reader.ReadBlockAt <EvolutionParameters>(
                this.EvolutionParamsPointer // offset
                );
            this.EmitterName = reader.ReadBlockAt <string_r>(
                this.EmitterNamePointer // offset
                );
            this.ParticleName = reader.ReadBlockAt <string_r>(
                this.ParticleNamePointer // offset
                );
            this.EmitterRule = reader.ReadBlockAt <EmitterRule>(
                this.EmitterRulePointer // offset
                );
            this.ParticleRule = reader.ReadBlockAt <ParticleRule>(
                this.ParticleRulePointer // offset
                );
        }
Esempio n. 17
0
        /// <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.Type                  = reader.ReadByte();
            this.Unknown_11h           = reader.ReadByte();
            this.Unknown_12h           = reader.ReadUInt16();
            this.BoundingSphereRadius  = reader.ReadSingle();
            this.Unknown_18h           = reader.ReadUInt32();
            this.Unknown_1Ch           = reader.ReadUInt32();
            this.BoundingBoxMax        = reader.ReadBlock <RAGE_Vector3>();
            this.Margin                = reader.ReadSingle();
            this.BoundingBoxMin        = reader.ReadBlock <RAGE_Vector3>();
            this.Unknown_3Ch           = reader.ReadUInt32();
            this.BoundingBoxCenter     = reader.ReadBlock <RAGE_Vector3>();
            this.MaterialIndex         = reader.ReadByte();
            this.ProceduralId          = reader.ReadByte();
            this.RoomId_And_PedDensity = reader.ReadByte();
            this.Unknown_4Fh           = reader.ReadByte();
            this.CenterGravity         = reader.ReadBlock <RAGE_Vector3>();
            this.PolyFlags             = reader.ReadByte();
            this.MaterialColorIndex    = reader.ReadByte();
            this.Unknown_5Eh           = reader.ReadUInt16();
            this.Unknown_60h           = reader.ReadSingle();
            this.Unknown_64h           = reader.ReadSingle();
            this.Unknown_68h           = reader.ReadSingle();
            this.BoundingBoxVolume     = reader.ReadSingle();
        }
        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.Unknown_0h = reader.ReadUInt32();
            this.Unknown_4h = reader.ReadUInt32();
            this.Unknown_8h = reader.ReadSingle();
            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.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.ModelHash1 = reader.ReadUInt32();
            this.TextureHash = reader.ReadUInt32();
            this.Unknown_60h = reader.ReadUInt32();
            this.ModelDictionaryHash = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();
            this.ModelHash2 = 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();
        }
Esempio n. 19
0
        public ulong Unknown_68h; // 0x0000000000000000

        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_10h = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt64();
            this.Unknown_20h = reader.ReadUInt64();
            this.Unknown_28h = reader.ReadUInt64();
            this.Unknown_30h = reader.ReadVector4();
            this.Unknown_40h = reader.ReadUInt32();
            this.Unknown_44h = reader.ReadSingle();
            this.Unknown_48h = reader.ReadSingle();
            this.Unknown_4Ch = reader.ReadSingle();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadSingle();
            this.Unknown_58h = reader.ReadSingle();
            this.Unknown_5Ch = reader.ReadUInt32();
            this.Unknown_60h = reader.ReadUInt32();
            this.Unknown_64h = reader.ReadUInt32();
            this.Unknown_68h = reader.ReadUInt64();
        }
Esempio n. 20
0
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            ProjectionMatrix = reader.ReadMatrix4x4();
            Id          = reader.ReadUInt32();
            GroupIndex  = reader.ReadUInt16();
            Unknown_46h = reader.ReadUInt16();
            Unknown_48h = reader.ReadUInt16();
            Unknown_4Ah = reader.ReadUInt16();
            ChunkSize   = reader.ReadUInt16();
            Unknown_4Eh = reader.ReadUInt16();
            Unknown_50h = reader.ReadUInt32();
            Unknown_54h = reader.ReadUInt32();
            Unknown_58h = reader.ReadSingle();
            Unknown_5Ch = reader.ReadSingle();
            Unknown_60h = reader.ReadUInt32();
            Unknown_64h = reader.ReadSingle();
            Unknown_68h = reader.ReadUInt32();
            Unknown_6Ch = reader.ReadUInt32();
            Chunk       = reader.ReadBytes(ChunkSize);

            // Skip padding
            reader.ReadBytes((16 - (ChunkSize % 16)) % 16);
        }
        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();
        }
Esempio n. 22
0
        /// <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.Type                 = reader.ReadByte();
            this.Unknown_11h          = reader.ReadByte();
            this.Unknown_12h          = reader.ReadUInt16();
            this.BoundingSphereRadius = reader.ReadSingle();
            this.Unknown_18h          = reader.ReadUInt32();
            this.Unknown_1Ch          = reader.ReadUInt32();
            this.BoundingBoxMax       = reader.ReadBlock <RAGE_Vector3>();
            this.Unknown_2Ch          = reader.ReadSingle();
            this.BoundingBoxMin       = reader.ReadBlock <RAGE_Vector3>();
            this.Unknown_3Ch          = reader.ReadUInt32();
            this.BoundingBoxCenter    = reader.ReadBlock <RAGE_Vector3>();
            this.Unknown_4Ch          = reader.ReadUInt32();
            this.Center               = reader.ReadBlock <RAGE_Vector3>();
            this.Unknown_5Ch          = reader.ReadUInt32();
            this.Unknown_60h          = reader.ReadSingle();
            this.Unknown_64h          = reader.ReadSingle();
            this.Unknown_68h          = reader.ReadSingle();
            this.Unknown_6Ch          = reader.ReadUInt32();
        }
Esempio n. 23
0
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.Unknown_0h        = reader.ReadVector4();
     this.Unknown_10h       = reader.ReadVector4();
     this.Unknown_20h       = reader.ReadVector4();
     this.Unknown_30h       = reader.ReadVector2();
     this.Unknown_38h       = reader.ReadVector2();
     this.VertexDeclaration = reader.ReadBlock <VertexDeclaration>();
     this.Unknown_50h       = reader.ReadSingle();
     this.Unknown_54h       = reader.ReadUInt16();
     this.Unknown_56h       = reader.ReadUInt16();
     this.Unknown_58h       = reader.ReadVector2();
     this.Unknown_60h       = reader.ReadVector4();
 }
Esempio n. 24
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_10h   = reader.ReadUInt32();
            this.Unknown_14h   = reader.ReadUInt32();
            this.Unknown_18h   = reader.ReadSingle();
            this.Unknown_1Ch   = reader.ReadUInt32();
            this.NamePointer   = reader.ReadUInt64();
            this.Unknown_28h   = reader.ReadUInt64();
            this.Unknown_30h   = reader.ReadUInt64();
            this.p2            = reader.ReadUInt64();
            this.Unknown_40h   = reader.ReadUInt64();
            this.p3            = reader.ReadUInt64();
            this.Unknown_50h   = reader.ReadUInt64();
            this.p4            = reader.ReadUInt64();
            this.Unknown_60h   = reader.ReadUInt64();
            this.Unknown_68h   = reader.ReadUInt64();
            this.Unknown_70h   = reader.ReadUInt64();
            this.KeyframeProp0 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp1 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp2 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp3 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp4 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp5 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp6 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp7 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp8 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp9 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProps = reader.ReadBlock <ResourcePointerList64 <KeyframeProp> >();
            this.Unknown_628h  = reader.ReadUInt32();
            this.Unknown_62Ch  = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.p2data = reader.ReadBlockAt <Domain>(
                this.p2 // offset
                );
            this.p3data = reader.ReadBlockAt <Domain>(
                this.p3 // offset
                );
            this.p4data = reader.ReadBlockAt <Domain>(
                this.p4 // offset
                );
        }
Esempio n. 25
0
 /// <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.ReadSingle();
     this.Unknown_8h  = reader.ReadUInt32();
     this.Unknown_Ch  = reader.ReadUInt32();
     this.Unknown_10h = reader.ReadSingle();
     this.Unknown_14h = reader.ReadSingle();
     this.Unknown_18h = reader.ReadSingle();
     this.Unknown_1Ch = reader.ReadSingle();
 }
Esempio n. 26
0
        public uint Unknown_17Ch;  // 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.ReadUInt64();
            this.Unknown_28h   = reader.ReadUInt64();
            this.KeyframeProp0 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp1 = reader.ReadBlock <KeyframeProp>();
            this.Unknown_150h  = reader.ReadUInt32();
            this.Unknown_154h  = reader.ReadSingle();
            this.Unknown_158h  = reader.ReadSingle();
            this.Unknown_15Ch  = reader.ReadSingle();
            this.Unknown_160h  = reader.ReadSingle();
            this.Unknown_164h  = reader.ReadSingle();
            this.Unknown_168h  = reader.ReadSingle();
            this.Unknown_16Ch  = reader.ReadSingle();
            this.Unknown_170h  = reader.ReadUInt32();
            this.Unknown_174h  = reader.ReadSingle();
            this.Unknown_178h  = reader.ReadSingle();
            this.Unknown_17Ch  = reader.ReadUInt32();
        }
Esempio n. 27
0
        /// <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.ReadSingle();
            this.Unknown_8h      = reader.ReadSingle();
            this.Unknown_Ch      = reader.ReadSingle();
            this.Unknown_10h     = reader.ReadSingle();
            this.Unknown_14h     = reader.ReadSingle();
            this.Unknown_18h     = reader.ReadSingle();
            this.Unknown_1Ch     = reader.ReadSingle();
            this.Unknown_20h     = reader.ReadUInt32();
            this.Unknown_24h     = reader.ReadUInt32();
            this.Unknown_28h     = reader.ReadUInt32();
            this.DataPointer     = reader.ReadUInt64();
            this.SubTree1Pointer = reader.ReadUInt64();
            this.SubTree2Pointer = reader.ReadUInt64();
            this.SubTree3Pointer = reader.ReadUInt64();
            this.SubTree4Pointer = reader.ReadUInt64();
            this.Unknown_54h     = reader.ReadUInt32();
            this.Unknown_58h     = reader.ReadUInt32();
            this.Unknown_5Ch     = reader.ReadUInt32();

            // read reference data
            this.Data = reader.ReadBlockAt <SectorData_GTA5_pc>(
                this.DataPointer // offset
                );
            this.SubTree1 = reader.ReadBlockAt <Sector_GTA5_pc>(
                this.SubTree1Pointer // offset
                );
            this.SubTree2 = reader.ReadBlockAt <Sector_GTA5_pc>(
                this.SubTree2Pointer // offset
                );
            this.SubTree3 = reader.ReadBlockAt <Sector_GTA5_pc>(
                this.SubTree3Pointer // offset
                );
            this.SubTree4 = reader.ReadBlockAt <Sector_GTA5_pc>(
                this.SubTree4Pointer // offset
                );
        }
Esempio n. 28
0
        public ulong Unknown_278h; // 0x0000000000000000

        /// <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.Index         = reader.ReadUInt32();
            this.Type          = reader.ReadByte();
            this.Unknown_Dh    = reader.ReadByte();
            this.Unknown_Eh    = reader.ReadUInt16();
            this.Unknown_10h   = reader.ReadUInt32();
            this.Unknown_14h   = reader.ReadUInt32();
            this.KeyframeProp0 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp1 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp2 = reader.ReadBlock <KeyframeProp>();
            this.KeyframeProp3 = reader.ReadBlock <KeyframeProp>();
            this.Unknown_258h  = reader.ReadSingle();
            this.Unknown_25Ch  = reader.ReadUInt32();
            this.KeyframeProps = reader.ReadBlock <ResourcePointerList64 <KeyframeProp> >();
            this.Unknown_270h  = reader.ReadUInt64();
            this.Unknown_278h  = reader.ReadUInt64();
        }
Esempio n. 29
0
        /// <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
                );
        }
Esempio n. 30
0
        /// <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.ReadUInt16();
            this.Unknown_12h = reader.ReadUInt16();
            this.Unknown_14h = reader.ReadUInt16();
            this.Unknown_16h = reader.ReadUInt16();
            this.Unknown_18h = reader.ReadSingle();
            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.Sequences   = reader.ReadBlock <ResourcePointerList64 <Sequence> >();
            this.Unknown_50h = reader.ReadBlock <ResourceSimpleList64 <Animation_Unknown> >();
        }
Esempio n. 31
0
        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();
        }
Esempio n. 32
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            // read structure data
            this.Rotation         = reader.ReadQuaternion();
            this.Translation      = reader.ReadVector3();
            this.Unknown_1Ch      = reader.ReadUInt32();
            this.Scale            = reader.ReadVector3();
            this.Unknown_2Ch      = reader.ReadSingle();
            this.NextSiblingIndex = reader.ReadInt16();
            this.ParentIndex      = reader.ReadInt16();
            this.Unknown_34h      = reader.ReadUInt32();
            this.NamePointer      = reader.ReadUInt64();
            this.Flags            = (BoneFlags)reader.ReadUInt16();
            this.Index            = reader.ReadInt16();
            this.BoneId           = reader.ReadUInt16();
            this.Unknown_46h      = reader.ReadUInt16();
            this.Unknown_48h      = reader.ReadUInt32();
            this.Unknown_4Ch      = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
        }
Esempio n. 33
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_10h   = reader.ReadUInt32();
            this.Unknown_14h   = reader.ReadUInt32();
            this.NamePointer   = reader.ReadUInt64();
            this.BoundPointer  = reader.ReadUInt64();
            this.TypeFlags     = reader.ReadUInt32();
            this.IncludeFlags  = reader.ReadUInt32();
            this.PropertyFlags = reader.ReadUInt32();
            this.Unknown_34h   = reader.ReadUInt32();
            this.Unknown_38h   = reader.ReadUInt32();
            this.Unknown_3Ch   = reader.ReadUInt32();
            this.Mass          = reader.ReadSingle();
            this.InvMass       = reader.ReadSingle();
            this.Unknown_48h   = reader.ReadSingle();
            this.MaxSpeed      = reader.ReadSingle();
            this.MaxAngSpeed   = reader.ReadSingle();
            this.Unknown_54h   = reader.ReadSingle();
            this.Unknown_58h   = reader.ReadUInt32();
            this.Unknown_5Ch   = reader.ReadUInt32();
            this.AngInertia    = reader.ReadVector4();
            this.InvAngInertia = reader.ReadVector4();
            this.Unknown_80h   = reader.ReadVector4();
            this.Unknown_90h   = reader.ReadVector4();
            this.Unknown_A0h   = reader.ReadVector4();
            this.Unknown_B0h   = reader.ReadVector4();
            this.Unknown_C0h   = reader.ReadVector4();
            this.Unknown_D0h   = reader.ReadVector4();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.Bound = reader.ReadBlockAt <Bound>(
                this.BoundPointer // offset
                );
        }
Esempio n. 34
0
        /// <summary>
        /// Reads the data-block from a stream.
        /// </summary>
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            // read structure data
            this.Unknown_10h            = reader.ReadUInt64();
            this.Unknown_18h            = reader.ReadUInt64();
            this.BoundingSphereCenter   = reader.ReadVector3();
            this.BoundingSphereRadius   = reader.ReadSingle();
            this.PrimaryDrawablePointer = reader.ReadUInt64();
            this.DrawablesPointer       = reader.ReadUInt64();
            this.DrawablesNamesPointer  = reader.ReadUInt64();
            this.DrawablesCount         = reader.ReadUInt32();
            this.Unknown_4Ch            = reader.ReadUInt32();
            this.Unknown_50h            = reader.ReadUInt64();
            this.NamePointer            = reader.ReadUInt64();
            this.Clothes                       = reader.ReadBlock <ResourcePointerList64 <EnvironmentCloth> >();
            this.Unknown_70h                   = reader.ReadUInt64();
            this.Unknown_78h                   = reader.ReadUInt64();
            this.Unknown_80h                   = reader.ReadUInt64();
            this.Unknown_88h                   = reader.ReadUInt64();
            this.Unknown_90h                   = reader.ReadUInt64();
            this.Unknown_98h                   = reader.ReadUInt64();
            this.Unknown_A0h                   = reader.ReadUInt64();
            this.MatrixSetPointer              = reader.ReadUInt64();
            this.Unknown_B0h                   = reader.ReadUInt32();
            this.Unknown_B4h                   = reader.ReadUInt32();
            this.Unknown_B8h                   = reader.ReadUInt32();
            this.Unknown_BCh                   = reader.ReadUInt32();
            this.Unknown_C0h                   = reader.ReadUInt32();
            this.Unknown_C4h                   = reader.ReadUInt32();
            this.Unknown_C8h                   = reader.ReadUInt32();
            this.Unknown_CCh                   = reader.ReadUInt32();
            this.GravityMultiplier             = reader.ReadSingle();
            this.BuoyancyMultiplier            = reader.ReadSingle();
            this.Unknown_D8h                   = reader.ReadByte();
            this.GlassPaneModelInfosCount      = reader.ReadByte();
            this.Unknown_DAh                   = reader.ReadUInt16();
            this.Unknown_DCh                   = reader.ReadUInt32();
            this.GlassPaneModelInfosPointer    = reader.ReadUInt64();
            this.Unknown_E8h                   = reader.ReadUInt64();
            this.PhysicsLODGroupPointer        = reader.ReadUInt64();
            this.ClothDrawablePointer          = reader.ReadUInt64();
            this.Unknown_100h                  = reader.ReadUInt64();
            this.Unknown_108h                  = reader.ReadUInt64();
            this.LightAttributes               = reader.ReadBlock <ResourceSimpleList64 <LightAttributes> >();
            this.VehicleGlassWindowDataPointer = reader.ReadUInt64();
            this.Unknown_128h                  = reader.ReadUInt64();

            // read reference data
            this.PrimaryDrawable = reader.ReadBlockAt <FragDrawable>(
                this.PrimaryDrawablePointer // offset
                );
            this.Drawables = reader.ReadBlockAt <ResourcePointerArray64 <FragDrawable> >(
                this.DrawablesPointer, // offset
                this.DrawablesCount
                );
            this.DrawablesNames = reader.ReadBlockAt <ResourcePointerArray64 <string_r> >(
                this.DrawablesNamesPointer, // offset
                this.DrawablesCount
                );
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
            this.MatrixSet = reader.ReadBlockAt <MatrixSet>(
                this.MatrixSetPointer // offset
                );
            this.GlassPaneModelInfos = reader.ReadBlockAt <ResourcePointerArray64 <GlassPaneModelInfo> >(
                this.GlassPaneModelInfosPointer, // offset
                this.GlassPaneModelInfosCount
                );
            this.PhysicsLODGroup = reader.ReadBlockAt <FragPhysicsLODGroup>(
                this.PhysicsLODGroupPointer // offset
                );
            this.ClothDrawable = reader.ReadBlockAt <FragDrawable>(
                this.ClothDrawablePointer // offset
                );
            this.VehicleGlassWindowData = reader.ReadBlockAt <VehicleGlassWindowData>(
                this.VehicleGlassWindowDataPointer // offset
                );
        }
        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;
        }
Esempio n. 36
0
        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;
        }
Esempio n. 37
0
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     Value = reader.ReadSingle();
 }
Esempio n. 38
0
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.m11 = reader.ReadSingle();
     this.m12 = reader.ReadSingle();
     this.m13 = reader.ReadSingle();
     this.m14 = reader.ReadSingle();
     this.m21 = reader.ReadSingle();
     this.m22 = reader.ReadSingle();
     this.m23 = reader.ReadSingle();
     this.m24 = reader.ReadSingle();
     this.m31 = reader.ReadSingle();
     this.m32 = reader.ReadSingle();
     this.m33 = reader.ReadSingle();
     this.m34 = reader.ReadSingle();
     this.m41 = reader.ReadSingle();
     this.m42 = reader.ReadSingle();
     this.m43 = reader.ReadSingle();
     this.m44 = reader.ReadSingle();
 }
        public uint Unknown_1FCh; // 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.SelfHash = reader.ReadUInt32();
            this.OtherHash = 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.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.ReadSingle();
            this.Unknown_5Ch = reader.ReadSingle();
            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.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.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.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();
            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();
            this.Unknown_190h = reader.ReadUInt32();
            this.Unknown_194h = reader.ReadUInt32();
            this.Unknown_198h = reader.ReadUInt32();
            this.Unknown_19Ch = reader.ReadUInt32();
            this.Unknown_1A0h = reader.ReadUInt32();
            this.Unknown_1A4h = reader.ReadUInt32();
            this.Unknown_1A8h = reader.ReadUInt32();
            this.Unknown_1ACh = reader.ReadUInt32();
            this.Unknown_1B0h = reader.ReadUInt32();
            this.Unknown_1B4h = reader.ReadUInt32();
            this.Unknown_1B8h = reader.ReadUInt32();
            this.Unknown_1BCh = reader.ReadUInt32();
            this.Unknown_1C0h = reader.ReadUInt32();
            this.Unknown_1C4h = reader.ReadUInt32();
            this.Unknown_1C8h = reader.ReadUInt32();
            this.Unknown_1CCh = reader.ReadUInt32();
            this.Unknown_1D0h = reader.ReadUInt32();
            this.Unknown_1D4h = reader.ReadUInt32();
            this.Unknown_1D8h = reader.ReadUInt32();
            this.Unknown_1DCh = reader.ReadUInt32();
            this.Unknown_1E0h = reader.ReadUInt32();
            this.Unknown_1E4h = reader.ReadUInt32();
            this.Unknown_1E8h = reader.ReadUInt32();
            this.Unknown_1ECh = reader.ReadUInt32();
            this.Unknown_1F0h = reader.ReadUInt32();
            this.Unknown_1F4h = reader.ReadUInt32();
            this.Unknown_1F8h = reader.ReadUInt32();
            this.Unknown_1FCh = reader.ReadUInt32();
        }
        public uint Unknown_ACh; // 0x00000001

        /// <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.ReadSingle();
            this.Unknown_14h = reader.ReadSingle();
            this.Unknown_18h = reader.ReadSingle();
            this.Unknown_1Ch = reader.ReadSingle();
            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.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.ReadSingle();
            this.Unknown_5Ch = reader.ReadSingle();
            this.Unknown_60h = reader.ReadSingle();
            this.Unknown_64h = reader.ReadSingle();
            this.Unknown_68h = reader.ReadSingle();
            this.Unknown_6Ch = reader.ReadSingle();
            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();
        }