Exemplo n.º 1
0
 /// <summary>
 /// Inherited from <see cref="RwNode"/>. Writes the data beyond the header.
 /// </summary>
 /// <param name="writer">The <see cref="BinaryWriter"/> to write the data with.</param>
 protected internal override void WriteBody(BinaryWriter writer)
 {
     mStructNode.Write(writer);
     mName.Write(writer);
     mMaskName.Write(writer);
     mRasterStructNode.Write(writer);
     mExtensionNode.Write(writer);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Inherited from <see cref="RwNode"/>. Writes the data beyond the header.
        /// </summary>
        /// <param name="writer">The <see cref="BinaryWriter"/> to write the data with.</param>
        protected internal override void WriteBody(BinaryWriter writer)
        {
            // Update the texture count in the struct
            mStructNode.TextureCount = (ushort)TextureCount;

            // And write the updated struct to the stream
            mStructNode.Write(writer);

            // Write textures
            foreach (RwTextureNativeNode texture in mTextures)
            {
                texture.Write(writer);
            }

            // Write extension
            mExtensionNode.Write(writer);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Inherited from <see cref="RwNode"/>. Writes the data beyond the header.
        /// </summary>
        /// <param name="writer">The <see cref="BinaryWriter"/> to write the data with.</param>
        protected internal override void WriteBody(BinaryWriter writer)
        {
            mStructNode = new RwClumpStructNode(this);
            mStructNode.Write(writer);
            FrameList.Write(writer);
            GeometryList.Write(writer);

            foreach (RwAtomicNode drawCall in Atomics)
            {
                drawCall.Write(writer);
            }

            if (HasAtomics)
            {
                mExtensionNodeNode.Write(writer);
            }

            var author = new RwStringNode("Model generated by Amicitia");

            author.Id     = RwNodeId.RmdAuthor;
            author.Parent = this;

            author.Write(writer);
        }