TypeID and FileID for a binding pointed to by an appearance.
Пример #1
0
        public void ReadBCF(Stream stream)
        {
            using (var io = IoBuffer.FromStream(stream, ByteOrder.LITTLE_ENDIAN))
            {
                Name = io.ReadPascalString();
                var type = io.ReadInt32();
                var zero = io.ReadInt32();

                var numBindings = io.ReadUInt32();
                Bindings = new AppearanceBinding[numBindings];

                for (var i = 0; i < numBindings; i++)
                {
                    //bindings are included verbatim here.
                    var bnd = new Binding();
                    bnd.Bone     = io.ReadPascalString();
                    bnd.MeshName = io.ReadPascalString();
                    io.ReadInt32();
                    io.ReadInt32();

                    Bindings[i] = new AppearanceBinding
                    {
                        RealBinding = bnd
                    };
                }
            }
        }
Пример #2
0
        public void ReadBCF(BCFReadProxy io)
        {
            Name = io.ReadPascalString();
            var type = io.ReadInt32();
            var zero = io.ReadInt32();

            var numBindings = io.ReadUInt32();

            Bindings = new AppearanceBinding[numBindings];

            for (var i = 0; i < numBindings; i++)
            {
                //bindings are included verbatim here.
                var bnd = new Binding();
                bnd.Bone     = io.ReadPascalString();
                bnd.MeshName = io.ReadPascalString();
                io.ReadInt32();
                io.ReadInt32();

                Bindings[i] = new AppearanceBinding
                {
                    RealBinding = bnd
                };
            }
        }
Пример #3
0
        /// <summary>
        /// Reads an appearance from a stream.
        /// </summary>
        /// <param name="stream">A Stream instance holding an appearance.</param>
        public void Read(Stream stream)
        {
            using (var io = IoBuffer.FromStream(stream))
            {
                var version = io.ReadUInt32();

                ThumbnailFileID = io.ReadUInt32();
                ThumbnailTypeID = io.ReadUInt32();

                var numBindings = io.ReadUInt32();
                Bindings = new AppearanceBinding[numBindings];

                for (var i = 0; i < numBindings; i++)
                {
                    Bindings[i] = new AppearanceBinding
                    {
                        FileID = io.ReadUInt32(),
                        TypeID = io.ReadUInt32()
                    };
                }
            }
        }
Пример #4
0
        /// <summary>
        /// Reads an appearance from a stream.
        /// </summary>
        /// <param name="stream">A Stream instance holding an appearance.</param>
        public void Read(Stream stream)
        {
            using (var io = IoBuffer.FromStream(stream))
            {
                var version = io.ReadUInt32();

                ThumbnailFileID = io.ReadUInt32();
                ThumbnailTypeID = io.ReadUInt32();

                var numBindings = io.ReadUInt32();
                Bindings = new AppearanceBinding[numBindings];

                for (var i = 0; i < numBindings; i++)
                {
                    Bindings[i] = new AppearanceBinding
                    {
                        FileID = io.ReadUInt32(),
                        TypeID = io.ReadUInt32()
                    };
                }
            }
        }