diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index b6ee2b2..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ - -# Add cpp files -AC_ADD_SCRIPT("${CMAKE_CURRENT_LIST_DIR}/src/transmog_scripts.cpp") -AC_ADD_SCRIPT("${CMAKE_CURRENT_LIST_DIR}/src/Transmogrification.cpp") - -# Add scripts to script loader -AC_ADD_SCRIPT_LOADER("Transmog" "${CMAKE_CURRENT_LIST_DIR}/src/transmog_scripts_loader.h" "SC_Npc_VisualWeapon") - -# Add config file -AC_ADD_CONFIG_FILE("${CMAKE_CURRENT_LIST_DIR}/conf/transmog.conf.dist") diff --git a/src/transmog_loader.cpp b/src/transmog_loader.cpp new file mode 100644 index 0000000..f7be53c --- /dev/null +++ b/src/transmog_loader.cpp @@ -0,0 +1,13 @@ +/* + * Copyright (C) 2016+ AzerothCore , released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3 + * Copyright (C) 2021+ WarheadCore + */ + +// From SC +void AddSC_Transmog(); + +// Add all +void Addmod_transmogScripts() +{ + AddSC_Transmog(); +} diff --git a/src/transmog_scripts.cpp b/src/transmog_scripts.cpp index cd41580..39a52e1 100644 --- a/src/transmog_scripts.cpp +++ b/src/transmog_scripts.cpp @@ -472,7 +472,7 @@ public: } }; -void AddSC_transmog() +void AddSC_Transmog() { new global_transmog_script(); new npc_transmogrifier(); diff --git a/src/transmog_scripts_loader.h b/src/transmog_scripts_loader.h deleted file mode 100644 index 6f87f0d..0000000 --- a/src/transmog_scripts_loader.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef TRANSMOGR_SCRIPTS_LOADER_H -#define TRANSMOGR_SCRIPTS_LOADER_H - -void AddSC_transmog(); - -void AddTransmogScripts() -{ - AddSC_transmog(); -} - -#endif /* TRANSMOG_SCRIPTS_LOADER_H */ -