From ab17e7a4d01b226aecde43b4f286f9f32e40657b Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sat, 6 Jun 2015 14:30:45 +0200 Subject: [PATCH] New mapconv project. --- CMakeLists.txt | 1 + tools/mapconv/CMakeLists.txt | 11 +++++++++++ tools/mapconv/main.cpp | 11 +++++++++++ 3 files changed, 23 insertions(+) create mode 100644 tools/mapconv/CMakeLists.txt create mode 100644 tools/mapconv/main.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 993b3f5..64a8133 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,3 +20,4 @@ include_directories( add_subdirectory(src) add_subdirectory(test) add_subdirectory(game) +add_subdirectory(tools/mapconv) diff --git a/tools/mapconv/CMakeLists.txt b/tools/mapconv/CMakeLists.txt new file mode 100644 index 0000000..9375c46 --- /dev/null +++ b/tools/mapconv/CMakeLists.txt @@ -0,0 +1,11 @@ +project(mapconv CXX) + +#add_definitions(-DWITH_TYLERMAP_WRITER) + +add_executable(${PROJECT_NAME} + main.cpp +) + +target_link_libraries(${PROJECT_NAME} + doorkeeper +) diff --git a/tools/mapconv/main.cpp b/tools/mapconv/main.cpp new file mode 100644 index 0000000..b2778ee --- /dev/null +++ b/tools/mapconv/main.cpp @@ -0,0 +1,11 @@ +#include "doorkeeper/doorkeeper.hpp" +#include "doorkeeper/helpers/tylermapsource.hpp" +#include +#include +#include + +int main() { + std::cout << "mapconv\n"; + + dkh::TylerMapSource<2> tyreader("test.tym"); +}