#pragma once #include #include #include namespace Morault { namespace UDMF { // DEPRECATED, DO NOT USE. struct Linedef { int v1, v2, sidefront = -1, sideback = -1; bool blocking; }; struct Sidedef { int sector; std::string texturetop = ""; std::string texturemiddle = ""; std::string texturebottom = ""; }; struct Vertex { float x, y; }; struct Sector { std::string texturefloor; std::string textureceiling; int heightceiling = 128; int heightfloor = 0; }; class UDMFMap { public: std::string udmfNamespace; std::vector linedefs; std::vector sidedefs; std::vector vertexes; std::vector sectors; void LoadMap(std::string textmap); }; Model LoadModelUDMFWalls(UDMFMap map); Model LoadModelUDMFFlats(UDMFMap map); } }