コード例 #1
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.Poses                 = reader.ReadBlock <ResourceSimpleList64 <DataVec3V> >();
            this.ControllerPointer     = reader.ReadUInt64();
            this.BoundCompositePointer = reader.ReadUInt64();
            this.Unknown_30h           = reader.ReadBlock <SimpleList64 <uint> >();
            this.Unknown_40h           = reader.ReadUInt64();
            this.Unknown_48h           = reader.ReadUInt64();
            this.Unknown_50h           = reader.ReadMatrix4x4();
            this.BoneIndex             = reader.ReadBlock <SimpleList64 <uint> >();
            this.Unknown_A0h           = reader.ReadUInt64();
            this.Unknown_A8h           = reader.ReadUInt64();
            this.Unknown_B0h           = reader.ReadUInt64();
            this.Unknown_B8h           = reader.ReadUInt64();
            this.Unknown_C0h           = reader.ReadUInt32();
            this.Unknown_C4h           = reader.ReadUInt32();
            this.Unknown_C8h           = reader.ReadUInt64();

            // read reference data
            this.Controller = reader.ReadBlockAt <CharacterClothController>(
                this.ControllerPointer // offset
                );
            this.BoundComposite = reader.ReadBlockAt <BoundComposite>(
                this.BoundCompositePointer // offset
                );
        }
コード例 #2
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.InstanceTuningPointer = reader.ReadUInt64();
            this.DrawablePointer       = reader.ReadUInt64();
            this.Unknown_20h           = reader.ReadUInt64();
            this.ControllerPointer     = reader.ReadUInt64();
            this.Unknown_30h           = reader.ReadUInt64();
            this.Unknown_38h           = reader.ReadUInt64();
            this.Unknown_40h           = reader.ReadUInt64();
            this.Unknown_48h           = reader.ReadUInt64();
            this.Unknown_50h           = reader.ReadUInt64();
            this.Unknown_58h           = reader.ReadUInt64();
            this.UserData    = reader.ReadBlock <SimpleList64 <uint> >();
            this.Unknown_70h = reader.ReadUInt64();
            this.Unknown_78h = reader.ReadUInt32();
            this.Unknown_7Ch = reader.ReadUInt32();

            // read reference data
            this.InstanceTuning = reader.ReadBlockAt <ClothInstanceTuning>(
                this.InstanceTuningPointer // offset
                );
            this.Drawable = reader.ReadBlockAt <FragDrawable>(
                this.DrawablePointer // offset
                );
            this.Controller = reader.ReadBlockAt <ClothController>(
                this.ControllerPointer // offset
                );
        }
コード例 #3
0
        public ulong Unknown_138h; // 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.Count            = reader.ReadUInt32();
            this.Unknown_14h      = reader.ReadUInt32();
            this.Unknown_18h      = reader.ReadUInt32();
            this.Unknown_1Ch      = reader.ReadUInt32();
            this.PinRadius0       = reader.ReadBlock <SimpleList64 <float> >();
            this.PinRadius1       = reader.ReadBlock <SimpleList64 <float> >();
            this.PinRadius2       = reader.ReadBlock <SimpleList64 <float> >();
            this.PinRadius3       = reader.ReadBlock <SimpleList64 <float> >();
            this.VertexWeight0    = reader.ReadBlock <SimpleList64 <float> >();
            this.VertexWeight1    = reader.ReadBlock <SimpleList64 <float> >();
            this.VertexWeight2    = reader.ReadBlock <SimpleList64 <float> >();
            this.VertexWeight3    = reader.ReadBlock <SimpleList64 <float> >();
            this.InflationScale0  = reader.ReadBlock <SimpleList64 <float> >();
            this.InflationScale1  = reader.ReadBlock <SimpleList64 <float> >();
            this.InflationScale2  = reader.ReadBlock <SimpleList64 <float> >();
            this.InflationScale3  = reader.ReadBlock <SimpleList64 <float> >();
            this.ClothDisplayMap0 = reader.ReadBlock <SimpleList64 <ushort> >();
            this.ClothDisplayMap1 = reader.ReadBlock <SimpleList64 <ushort> >();
            this.ClothDisplayMap2 = reader.ReadBlock <SimpleList64 <ushort> >();
            this.ClothDisplayMap3 = reader.ReadBlock <SimpleList64 <ushort> >();
            this.Unknown_120h     = reader.ReadUInt64();
            this.Unknown_128h     = reader.ReadBlock <SimpleList64 <uint> >();
            this.Unknown_138h     = reader.ReadUInt64();
        }
コード例 #4
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_A8h       = reader.ReadUInt64();
            this.Unknown_B0h       = reader.ReadMatrix4x4();
            this.BoundPointer      = reader.ReadUInt64();
            this.Unknown_F8h_Data  = reader.ReadBlock <SimpleList64 <ulong> >();
            this.Unknown_108h_Data = reader.ReadBlock <SimpleList64 <Matrix4x4> >();
            this.Unknown_118h      = reader.ReadUInt64();
            this.Unknown_120h      = reader.ReadUInt64();
            this.Unknown_128h      = reader.ReadUInt64();
            this.NamePointer       = reader.ReadUInt64();
            this.Unknown_138h      = reader.ReadUInt64();
            this.Unknown_140h      = reader.ReadUInt64();
            this.Unknown_148h      = reader.ReadUInt64();

            // read reference data
            this.Bound = reader.ReadBlockAt <Bound>(
                this.BoundPointer // offset
                );
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
        }
コード例 #5
0
ファイル: Expression.cs プロジェクト: snakewiz/gta-toolkit
        /// <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.ReadBlock <ResourcePointerList64 <Unknown_E_001> >();
            this.Unknown_30h = reader.ReadBlock <SimpleList64 <uint> >();
            this.Unknown_40h = reader.ReadBlock <ResourceSimpleList64 <Unknown_E_002> >();
            this.Unknown_50h = reader.ReadBlock <SimpleList64 <uint> >();
            this.NamePointer = reader.ReadUInt64();
            this.NameLength1 = reader.ReadUInt16();
            this.NameLength2 = reader.ReadUInt16();
            this.Unknown_6Ch = reader.ReadUInt32();
            this.Unknown_70h = reader.ReadUInt32();
            this.Unknown_74h = reader.ReadUInt32();
            this.len         = reader.ReadUInt16();
            this.Unknown_7Ah = reader.ReadUInt16();
            this.Unknown_7Ch = reader.ReadUInt32();
            this.Unknown_80h = reader.ReadUInt32();
            this.Unknown_84h = reader.ReadUInt32();
            this.Unknown_88h = reader.ReadUInt32();
            this.Unknown_8Ch = reader.ReadUInt32();

            // read reference data
            this.Name = reader.ReadBlockAt <string_r>(
                this.NamePointer // offset
                );
        }
コード例 #6
0
ファイル: Unknown_P_006.cs プロジェクト: snakewiz/gta-toolkit
        public ulong Unknown_28h; // 0x0000000000000000

        /// <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.ReadBlock <SimpleList64 <Unknown_P_009> >();
            this.Unknown_10h = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt64();
            this.Unknown_20h = reader.ReadUInt32();
            this.Unknown_24h = reader.ReadUInt32();
            this.Unknown_28h = reader.ReadUInt64();
        }
コード例 #7
0
ファイル: Filter.cs プロジェクト: snakewiz/gta-toolkit
        public ulong Unknown_38h; // 0x0000000000000000

        /// <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.Unknown_8h  = reader.ReadUInt32();
            this.Unknown_Ch  = reader.ReadUInt32();
            this.Unknown_10h = reader.ReadUInt32();
            this.Unknown_14h = reader.ReadUInt32();
            this.Unknown_18h = reader.ReadBlock <SimpleList64 <ulong> >();
            this.Unknown_28h = reader.ReadBlock <SimpleList64 <float> >();
            this.Unknown_38h = reader.ReadUInt64();
        }
コード例 #8
0
        public uint Unknown_54h; // 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.ReadBlock <string32_r>();
            this.Unknown_20h = reader.ReadUInt64();
            this.Unknown_28h = reader.ReadUInt64();
            this.Unknown_30h = reader.ReadUInt64();
            this.Unknown_38h = reader.ReadUInt64();
            this.Unknown_40h = reader.ReadBlock <SimpleList64 <uint> >();
            this.Unknown_50h = reader.ReadUInt32();
            this.Unknown_54h = reader.ReadUInt32();
        }
コード例 #9
0
 /// <summary>
 /// Reads the data-block from a stream.
 /// </summary>
 public override void Read(ResourceDataReader reader, params object[] parameters)
 {
     // read structure data
     this.Nodes             = reader.ReadBlock <SimpleList64_32 <BVHNode> >();
     this.Unknown_10h       = reader.ReadUInt32();
     this.Unknown_14h       = reader.ReadUInt32();
     this.Unknown_18h       = reader.ReadUInt32();
     this.Unknown_1Ch       = reader.ReadUInt32();
     this.BoundingBoxMin    = reader.ReadVector4();
     this.BoundingBoxMax    = reader.ReadVector4();
     this.BoundingBoxCenter = reader.ReadVector4();
     this.QuantumInverse    = reader.ReadVector4();
     this.Quantum           = reader.ReadVector4();
     this.Trees             = reader.ReadBlock <SimpleList64 <BVHTreeInfo> >();
 }
コード例 #10
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.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> >();
        }
コード例 #11
0
ファイル: KeyframeProp.cs プロジェクト: snakewiz/gta-toolkit
        public ulong Unknown_88h; // 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_8h  = reader.ReadUInt64();
            this.Unknown_10h = reader.ReadUInt64();
            this.Unknown_18h = reader.ReadUInt64();
            this.Unknown_20h = reader.ReadUInt64();
            this.Unknown_28h = reader.ReadUInt64();
            this.Unknown_30h = reader.ReadUInt64();
            this.Unknown_38h = reader.ReadUInt64();
            this.Unknown_40h = reader.ReadUInt64();
            this.Unknown_48h = reader.ReadUInt64();
            this.Unknown_50h = reader.ReadUInt64();
            this.Unknown_58h = reader.ReadUInt64();
            this.Unknown_60h = reader.ReadUInt64();
            this.Unknown_68h = reader.ReadUInt32();
            this.Unknown_6Ch = reader.ReadUInt32();
            this.Unknown_70h = reader.ReadBlock <SimpleList64 <Unknown_P_009> >();
            this.Unknown_80h = reader.ReadUInt64();
            this.Unknown_88h = reader.ReadUInt64();
        }
コード例 #12
0
ファイル: Unknown_C_006.cs プロジェクト: snakewiz/gta-toolkit
        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 <SimpleList64 <Vector4> >();
            this.Unknown_60h  = reader.ReadBlock <SimpleList64 <ushort> >();
            this.Unknown_70h  = reader.ReadBlock <SimpleList64 <ushort> >();
            this.Unknown_80h  = reader.ReadBlock <SimpleList64 <ushort> >();
            this.Unknown_90h  = reader.ReadBlock <SimpleList64 <ushort> >();
            this.Unknown_A0h  = reader.ReadBlock <SimpleList64 <Vector4> >();
            this.Unknown_B0h  = reader.ReadBlock <SimpleList64 <ushort> >();
            this.Unknown_C0h  = reader.ReadBlock <SimpleList64 <ushort> >();
            this.Unknown_D0h  = reader.ReadBlock <SimpleList64 <ushort> >();
            this.Unknown_E0h  = reader.ReadBlock <SimpleList64 <ushort> >();
            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 <SimpleList64 <ushort> >();
            this.Unknown_160h = reader.ReadBlock <SimpleList64 <ushort> >();
            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();
        }
コード例 #13
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.BoundPointer         = 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.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 <SimpleList64 <Vector4> >();
            this.Unknown_80h          = reader.ReadBlock <SimpleList64 <Vector4> >();
            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.NumEdges             = reader.ReadUInt32();
            this.Unknown_F0h          = reader.ReadUInt32();
            this.Unknown_F4h          = reader.ReadUInt32();
            this.Unknown_F8h          = reader.ReadUInt32();
            this.Unknown_FCh          = reader.ReadUInt32();
            this.CustomEdgeData       = reader.ReadBlock <ResourceSimpleList64 <EdgeData> >();
            this.EdgeData             = reader.ReadBlock <ResourceSimpleList64 <EdgeData> >();
            this.Unknown_120h         = reader.ReadUInt32();
            this.Unknown_124h         = reader.ReadUInt32();
            this.Unknown_128h         = reader.ReadUInt32();
            this.Unknown_12Ch         = reader.ReadUInt32();
            this.BehaviorPointer      = reader.ReadUInt64();
            this.Unknown_138h         = reader.ReadUInt32();
            this.Unknown_13Ch         = reader.ReadUInt32();
            this.Unknown_140h_Pointer = reader.ReadUInt64();
            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();

            // read reference data
            this.Bound = reader.ReadBlockAt <Bound>(
                this.BoundPointer // offset
                );
            this.Behavior = reader.ReadBlockAt <EnvClothVerletBehavior>(
                this.BehaviorPointer // offset
                );
            this.Unknown_140h_Data = reader.ReadBlockAt <Unknown_C_007>(
                this.Unknown_140h_Pointer // offset
                );
        }