refactor: updated module registration to core rev 4++

This commit is contained in:
BytesGalore
2021-09-18 18:33:37 +02:00
parent a09f384071
commit 0ec9d68369
2 changed files with 1 additions and 12 deletions

View File

@@ -1,3 +0,0 @@
AC_ADD_SCRIPT("${CMAKE_CURRENT_LIST_DIR}/src/mod_learnspells.cpp")
AC_ADD_SCRIPT_LOADER("LearnAllSpells" "${CMAKE_CURRENT_LIST_DIR}/src/loader.h")
AC_ADD_CONFIG_FILE("${CMAKE_CURRENT_LIST_DIR}/conf/mod_learnspells.conf.dist")

View File

@@ -3,16 +3,8 @@
* Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore> * Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore>
*/ */
#ifndef _LEARN_ALL_SPELLS_LOADER_H_
#define _LEARN_ALL_SPELLS_LOADER_H_
// From SC
void AddSC_LearnAllSpells(); void AddSC_LearnAllSpells();
// Add all void Addmod_learn_spellsScripts() {
void AddLearnAllSpellsScripts()
{
AddSC_LearnAllSpells(); AddSC_LearnAllSpells();
} }
#endif /* _LEARN_ALL_SPELLS_LOADER_H_ */