mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
feat(Core/Hooks): added collection of hooks to extends AC (#3047)
This collection of hooks comes from the Maelstrom project. It allows to release modules such as : - 3v3-soloqueue - 1v1 arena - pvestats and many others
This commit is contained in:
@@ -5,6 +5,22 @@ MACRO(AC_ADD_SCRIPT path)
|
||||
CU_ADD_GLOBAL("AC_SCRIPTS_SOURCES" "${path}")
|
||||
ENDMACRO()
|
||||
|
||||
#
|
||||
# AC_ADD_SCRIPTS
|
||||
#
|
||||
# This macro can be used to automatically load scripts for the ScriptMgr
|
||||
# from a specified folder, instead of manually list them within the cmake
|
||||
# NOTE: you must still manually specify the script loader header
|
||||
#
|
||||
|
||||
MACRO(AC_ADD_SCRIPTS path)
|
||||
CU_SUBDIRLIST(sub_DIRS ${path} TRUE TRUE)
|
||||
FOREACH(subdir ${sub_DIRS})
|
||||
file(GLOB sources "${subdir}/*.cpp" "${subdir}/*.h")
|
||||
CU_LIST_ADD_CACHE(scripts_STAT_SRCS "${sources}")
|
||||
ENDFOREACH()
|
||||
ENDMACRO()
|
||||
|
||||
#
|
||||
# AC_ADD_SCRIPT_LOADER
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user