コード例 #1
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
                );
        }