Skip to content

Commit

Permalink
chore: split out slash commands into multiple files (#1539)
Browse files Browse the repository at this point in the history
* chore: split out slash commands into multiple files
Breakup the monolithic file
don't register slashcommands on startup

* fix typo
  • Loading branch information
aronwk-aaron committed Apr 10, 2024
1 parent 1ee4563 commit d067a8d
Show file tree
Hide file tree
Showing 11 changed files with 2,299 additions and 2,255 deletions.
8 changes: 7 additions & 1 deletion dGame/dUtilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ set(DGAME_DUTILITIES_SOURCES "BrickDatabase.cpp"
"SlashCommandHandler.cpp"
"VanityUtilities.cpp")

add_subdirectory(SlashCommands)

foreach(file ${DGAME_DUTILITIES_SLASHCOMMANDS})
set(DGAME_DUTILITIES_SOURCES ${DGAME_DUTILITIES_SOURCES} "SlashCommands/${file}")
endforeach()

add_library(dUtilities OBJECT ${DGAME_DUTILITIES_SOURCES})
target_precompile_headers(dUtilities REUSE_FROM dGameBase)
target_include_directories(dUtilities PUBLIC "."
target_include_directories(dUtilities PUBLIC "." "SlashCommands"
PRIVATE
"${PROJECT_SOURCE_DIR}/dGame/dComponents"
"${PROJECT_SOURCE_DIR}/dGame/dInventory" # transitive via PossessableComponent.h
Expand Down
Loading

0 comments on commit d067a8d

Please sign in to comment.