mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 22:56:24 +00:00
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:
@@ -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")
|
||||
26
src/server/scripts/Events/events_script_loader.cpp
Normal file
26
src/server/scripts/Events/events_script_loader.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user