mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 08:46:09 +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,23 +0,0 @@
|
||||
# Copyright (C)
|
||||
#
|
||||
# This file is free software; as a special exception the author gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
set(scripts_STAT_SRCS
|
||||
${scripts_STAT_SRCS}
|
||||
${AC_SCRIPTS_DIR}/Pet/pet_dk.cpp
|
||||
${AC_SCRIPTS_DIR}/Pet/pet_generic.cpp
|
||||
${AC_SCRIPTS_DIR}/Pet/pet_hunter.cpp
|
||||
${AC_SCRIPTS_DIR}/Pet/pet_mage.cpp
|
||||
${AC_SCRIPTS_DIR}/Pet/pet_priest.cpp
|
||||
${AC_SCRIPTS_DIR}/Pet/pet_shaman.cpp
|
||||
)
|
||||
|
||||
AC_ADD_SCRIPT_LOADER("Pet" "ScriptLoader.h")
|
||||
|
||||
message(" -> Prepared: Pet")
|
||||
25
src/server/scripts/Pet/pets_script_loader.cpp
Normal file
25
src/server/scripts/Pet/pets_script_loader.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* 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:
|
||||
// Pets
|
||||
void AddSC_deathknight_pet_scripts();
|
||||
void AddSC_generic_pet_scripts();
|
||||
void AddSC_hunter_pet_scripts();
|
||||
void AddSC_mage_pet_scripts();
|
||||
void AddSC_priest_pet_scripts();
|
||||
void AddSC_shaman_pet_scripts();
|
||||
|
||||
// The name of this function should match:
|
||||
// void Add${NameOfDirectory}Scripts()
|
||||
void AddPetScripts()
|
||||
{
|
||||
AddSC_deathknight_pet_scripts();
|
||||
AddSC_generic_pet_scripts();
|
||||
AddSC_hunter_pet_scripts();
|
||||
AddSC_mage_pet_scripts();
|
||||
AddSC_priest_pet_scripts();
|
||||
AddSC_shaman_pet_scripts();
|
||||
}
|
||||
Reference in New Issue
Block a user