Basic NPC loading (half done)

This commit is contained in:
2025-06-13 17:07:28 -05:00
parent 49989e0272
commit 9288c01887
25 changed files with 644 additions and 26 deletions

View File

@ -6,19 +6,13 @@
find_package(Python3 COMPONENTS Interpreter REQUIRED)
# Custom command to generate all header files
add_custom_command(
OUTPUT ${DUSK_GENERATED_HEADERS_DIR}/world/world.h
add_custom_target(DUSK_CHUNKS
# OUTPUT ${DUSK_GENERATED_HEADERS_DIR}/world/world.h
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/chunks.py --output ${DUSK_GENERATED_HEADERS_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/chunks.py
COMMENT "Generating chunk header files"
VERBATIM
)
# Custom target to generate headers before build
add_custom_target(DUSK_CHUNKS
DEPENDS
${DUSK_GENERATED_HEADERS_DIR}/world/world.h
)
# Ensure headers are generated before compiling main
add_dependencies(${DUSK_TARGET_NAME} DUSK_CHUNKS)