예제 #1
0
        private void ReadSectors(BinaryReader reader)
        {
            int count = levelData.sectors.SeekAndGetCount(reader, SectorType.Size);

            Console.WriteLine("  Sectors count " + count.ToString());

            for (int i = 0; i < count; i++)
            {
                SectorType s = ByteArrayToType.ByteArrayTo <SectorType>(reader, SectorType.Size);
                sectors.Add(s);
            }
        }
예제 #2
0
        internal void ReadLineDefs(BinaryReader reader)
        {
            int count = levelData.lineDefs.SeekAndGetCount(reader, LineDefType.Size);

            Console.WriteLine("  Line defs count " + count.ToString());

            for (int i = 0; i < count; i++)
            {
                LineDefType l = ByteArrayToType.ByteArrayTo <LineDefType>(reader, LineDefType.Size);
                lineDefs.Add(l);
            }
        }
예제 #3
0
        private void ReadThings(BinaryReader reader)
        {
            int count = levelData.things.SeekAndGetCount(reader, ThingType.Size);

            Console.WriteLine("  Things count " + count.ToString());

            for (int i = 0; i < count; i++)
            {
                ThingType t = ByteArrayToType.ByteArrayTo <ThingType>(reader, ThingType.Size);
                things.Add(t);
            }
        }
예제 #4
0
        internal void ReadVertices(BinaryReader reader)
        {
            int count = levelData.vertexEs.SeekAndGetCount(reader, VertexType.Size);

            Console.WriteLine("  Vertex count " + count.ToString());

            for (int i = 0; i < count; i++)
            {
                VertexType v = ByteArrayToType.ByteArrayTo <VertexType>(reader, VertexType.Size);
                vertices.Add(v);
            }
        }