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); } }
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); } }
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); } }
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); } }