Skip to content
Permalink
Browse files

Mop: Copy Cata Tool and include StormLib if Cata or Mop

  • Loading branch information...
Zyres committed Jan 14, 2019
1 parent 3ddef88 commit 3150ffa529a3802c8ff6cd4b4c25adad797f4429
Showing with 8,978 additions and 1 deletion.
  1. +1 −1 dep/CMakeLists.txt
  2. +18 −0 src/tools/ToolsMop/map_extractor/CMakeLists.txt
  3. +1,378 −0 src/tools/ToolsMop/map_extractor/System.cpp
  4. +179 −0 src/tools/ToolsMop/map_extractor/adt.cpp
  5. +330 −0 src/tools/ToolsMop/map_extractor/adt.h
  6. +125 −0 src/tools/ToolsMop/map_extractor/dbcfile.cpp
  7. +159 −0 src/tools/ToolsMop/map_extractor/dbcfile.h
  8. +83 −0 src/tools/ToolsMop/map_extractor/loadlib.cpp
  9. +98 −0 src/tools/ToolsMop/map_extractor/loadlib/loadlib.h
  10. +85 −0 src/tools/ToolsMop/map_extractor/wdt.cpp
  11. +99 −0 src/tools/ToolsMop/map_extractor/wdt.h
  12. +27 −0 src/tools/ToolsMop/mmaps_generator/CMakeLists.txt
  13. +278 −0 src/tools/ToolsMop/mmaps_generator/IntermediateValues.cpp
  14. +54 −0 src/tools/ToolsMop/mmaps_generator/IntermediateValues.h
  15. +1,048 −0 src/tools/ToolsMop/mmaps_generator/MapBuilder.cpp
  16. +239 −0 src/tools/ToolsMop/mmaps_generator/MapBuilder.h
  17. +139 −0 src/tools/ToolsMop/mmaps_generator/PathCommon.h
  18. +298 −0 src/tools/ToolsMop/mmaps_generator/PathGenerator.cpp
  19. +934 −0 src/tools/ToolsMop/mmaps_generator/TerrainBuilder.cpp
  20. +128 −0 src/tools/ToolsMop/mmaps_generator/TerrainBuilder.h
  21. +10 −0 src/tools/ToolsMop/vmap_tools/CMakeLists.txt
  22. +24 −0 src/tools/ToolsMop/vmap_tools/vmap4_assembler/CMakeLists.txt
  23. +50 −0 src/tools/ToolsMop/vmap_tools/vmap4_assembler/VMapAssembler.cpp
  24. +27 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/CMakeLists.txt
  25. +228 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/adtfile.cpp
  26. +135 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/adtfile.h
  27. +119 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/dbcfile.cpp
  28. +172 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/dbcfile.h
  29. +118 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/gameobject_extract.cpp
  30. +214 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/model.cpp
  31. +69 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/model.h
  32. +96 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/modelheaders.h
  33. +107 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/mpqfile.cpp
  34. +112 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/mpqfile.h
  35. +249 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/vec3d.h
  36. +604 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/vmapexport.cpp
  37. +43 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/vmapexport.h
  38. +133 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/wdtfile.cpp
  39. +46 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/wdtfile.h
  40. +571 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/wmo.cpp
  41. +141 −0 src/tools/ToolsMop/vmap_tools/vmap4_extractor/wmo.h
  42. +5 −0 src/tools/ToolsMop/vmap_tools/vmaps.bat
  43. +5 −0 src/tools/ToolsMop/vmap_tools/vmaps.sh
@@ -20,7 +20,7 @@ add_subdirectory(g3dlite)
add_subdirectory(lualib/src)

if(BUILD_TOOLS)
if("${ASCEMU_VERSION}" STREQUAL "Cata")
if("${ASCEMU_VERSION}" STREQUAL "Cata" OR "${ASCEMU_VERSION}" STREQUAL "Mop")
add_subdirectory(StormLib)
else()
add_subdirectory(libmpq)
@@ -0,0 +1,18 @@
# Copyright (c) 2014-2019 AscEmu Team <http://www.ascemu.org>

project(map_extractor CXX)
file(GLOB source *.cpp *.h)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/dep/StormLib/src
${CMAKE_CURRENT_SOURCE_DIR}/loadlib
)

add_executable(${PROJECT_NAME} ${source})
target_link_libraries(${PROJECT_NAME} storm)
add_dependencies(${PROJECT_NAME} storm)

install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${ASCEMU_TOOLS_PATH})

unset(source)

0 comments on commit 3150ffa

Please sign in to comment.
You can’t perform that action at this time.