예제 #1
0
        protected override void DoWrite(System.IO.BinaryWriter writer)
        {
            Magic.Write(writer);
            writer.Write(Version);
            writer.Write(NumVertices);

            for (int i = 0; i < VertexArrays.Length; i++)
            {
                VertexArrays[i].Write(writer);
            }

            writer.Write((Int32)Indices.Length);

            for (int i = 0; i < Indices.Length; i++)
            {
                writer.Write(Indices[i]);
            }

            writer.Write((Int32)Segments.Length);

            for (int i = 0; i < Segments.Length; i++)
            {
                Segments[i].Write(writer);
            }

            BoundCenter.Write(writer);
            writer.Write(BoundRadius);
            BoundMin.Write(writer);
            BoundMax.Write(writer);
        }
예제 #2
0
        protected override void DoWrite(System.IO.BinaryWriter writer)
        {
            Magic.Write(writer);
            writer.Write(Version);
            writer.Write((Int32)Nodes.Count);

            foreach (GrimModelNode node in Nodes)
            {
                node.Write(writer);
            }
        }
예제 #3
0
        protected override void DoWrite(System.IO.BinaryWriter writer)
        {
            Magic.Write(writer);
            writer.Write(Version);
            WriteString(writer, AnimationName);
            writer.Write(FramesPerSecond);
            writer.Write(NumFrames);

            if (Items == null)
            {
                writer.Write((Int32)0);
            }
            else
            {
                writer.Write((Int32)Items.Length);

                for (int i = 0; i < Items.Length; i++)
                {
                    Items[i].Write(writer);
                }
            }
        }