Beispiel #1
0
        private int BlockOutSectionPointer(WorldData world)
        {
            writer.Write(world.GetVersion());
            writer.Write((byte)numSections);
            for (int i = 0; i < numSections; i++)
            {
                writer.Write(0);
            }

            return((int)writer.BaseStream.Position);
        }
Beispiel #2
0
        private void SerializeSectionPointers(WorldData world, int[] pointers)
        {
            writer.BaseStream.Position = 0L;

            WorldHeader header = world.GetHeader();

            writer.Write(world.GetVersion());
            writer.Write((byte)pointers.Length);

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