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