feat(Core/Scripts): split the huge scriptloader into smaller pieces (#5346)

* feat(Core/Scripts): split the huge scriptloader into smaller pieces

* AddSC_swamp_of_sorrows del

* 1

* add mod info

* 1

* 039f0e0faa

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
Kargatum
2021-06-23 04:19:02 +07:00
committed by GitHub
parent 20a67cbfcf
commit 5991b2769a
49 changed files with 1978 additions and 2264 deletions

View File

@@ -1,14 +0,0 @@
set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
${AC_SCRIPTS_DIR}/Events/brewfest.cpp
${AC_SCRIPTS_DIR}/Events/childrens_week.cpp
${AC_SCRIPTS_DIR}/Events/hallows_end.cpp
${AC_SCRIPTS_DIR}/Events/pilgrims_bounty.cpp
${AC_SCRIPTS_DIR}/Events/winter_veil.cpp
${AC_SCRIPTS_DIR}/Events/love_in_air.cpp
${AC_SCRIPTS_DIR}/Events/midsummer.cpp
)
AC_ADD_SCRIPT_LOADER("Event" "ScriptLoader.h")
message(" -> Prepared: Events")

View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
* Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore>
*/
// This is where scripts' loading functions should be declared:
void AddSC_event_brewfest_scripts();
void AddSC_event_hallows_end_scripts();
void AddSC_event_pilgrims_end_scripts();
void AddSC_event_winter_veil_scripts();
void AddSC_event_love_in_the_air();
void AddSC_event_midsummer_scripts();
void AddSC_event_childrens_week();
// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
void AddEventsScripts()
{
AddSC_event_brewfest_scripts();
AddSC_event_hallows_end_scripts();
AddSC_event_pilgrims_end_scripts();
AddSC_event_winter_veil_scripts();
AddSC_event_love_in_the_air();
AddSC_event_midsummer_scripts();
AddSC_event_childrens_week();
}