Esempio n. 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
                );
        }
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.VFT               = reader.ReadUInt32();
            this.Unknown_4h        = reader.ReadUInt32();
            this.Unknown_8h        = reader.ReadUInt32();
            this.Unknown_Ch        = reader.ReadUInt32();
            this.Unknown_10h       = reader.ReadBlock <ResourceSimpleList64 <Unknown_C_001> >();
            this.ControllerPointer = reader.ReadUInt64();
            this.BoundPointer      = reader.ReadUInt64();
            this.Unknown_30h       = reader.ReadBlock <ResourceSimpleList64 <uint_r> >();
            this.Unknown_40h       = reader.ReadUInt32();
            this.Unknown_44h       = reader.ReadUInt32();
            this.Unknown_48h       = reader.ReadUInt32();
            this.Unknown_4Ch       = reader.ReadUInt32();
            this.Unknown_50h       = reader.ReadUInt32();
            this.Unknown_54h       = reader.ReadUInt32();
            this.Unknown_58h       = reader.ReadUInt32();
            this.Unknown_5Ch       = reader.ReadUInt32();
            this.Unknown_60h       = reader.ReadUInt32();
            this.Unknown_64h       = reader.ReadUInt32();
            this.Unknown_68h       = reader.ReadUInt32();
            this.Unknown_6Ch       = reader.ReadUInt32();
            this.Unknown_70h       = reader.ReadUInt32();
            this.Unknown_74h       = reader.ReadUInt32();
            this.Unknown_78h       = reader.ReadUInt32();
            this.Unknown_7Ch       = reader.ReadUInt32();
            this.Unknown_80h       = reader.ReadUInt32();
            this.Unknown_84h       = reader.ReadUInt32();
            this.Unknown_88h       = reader.ReadUInt32();
            this.Unknown_8Ch       = reader.ReadUInt32();
            this.Unknown_90h       = reader.ReadBlock <ResourceSimpleList64 <uint_r> >();
            this.Unknown_A0h       = reader.ReadUInt32();
            this.Unknown_A4h       = reader.ReadUInt32();
            this.Unknown_A8h       = reader.ReadUInt32();
            this.Unknown_ACh       = reader.ReadUInt32();
            this.Unknown_B0h       = reader.ReadUInt32();
            this.Unknown_B4h       = reader.ReadUInt32();
            this.Unknown_B8h       = reader.ReadUInt32();
            this.Unknown_BCh       = reader.ReadUInt32();
            this.Unknown_C0h       = reader.ReadUInt32();
            this.Unknown_C4h       = reader.ReadUInt32();
            this.Unknown_C8h       = reader.ReadUInt32();
            this.Unknown_CCh       = reader.ReadUInt32();

            // read reference data
            this.Controller = reader.ReadBlockAt <CharacterClothController>(
                this.ControllerPointer // offset
                );
            this.Bound = reader.ReadBlockAt <Bound>(
                this.BoundPointer // offset
                );
        }