feat(Core/Scripting): move all script objects to separated files (#17860)

* feat(Core/Scripts): move all script objects to separated files

* Apply 5bfeabde81

* try gcc build

* again
This commit is contained in:
Winfidonarleyan
2023-12-03 03:13:20 +07:00
committed by GitHub
parent fe9bda1bc4
commit eb1ecc38a5
717 changed files with 5832 additions and 3579 deletions

View File

@@ -15,21 +15,21 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Cell.h"
#include "CellImpl.h"
#include "CombatAI.h"
#include "CreatureScript.h"
#include "GridNotifiers.h"
#include "PassiveAI.h"
#include "ScriptedCreature.h"
#include "SpellAuraEffects.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
/*
* Ordered alphabetically using scriptname.
* Scriptnames of files in this file should be prefixed with "npc_pet_dk_".
*/
#include "Cell.h"
#include "CellImpl.h"
#include "CombatAI.h"
#include "GridNotifiers.h"
#include "PassiveAI.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuraEffects.h"
#include "SpellScript.h"
/// @todo: this import is not necessary for compilation and marked as unused by the IDE
// however, for some reasons removing it would cause a damn linking issue
// there is probably some underlying problem with imports which should properly addressed
@@ -375,3 +375,4 @@ void AddSC_deathknight_pet_scripts()
new npc_pet_dk_dancing_rune_weapon();
RegisterSpellScript(spell_pet_dk_gargoyle_strike);
}

View File

@@ -15,20 +15,20 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Ordered alphabetically using scriptname.
* Scriptnames of files in this file should be prefixed with "npc_pet_gen_".
*/
#include "CreatureScript.h"
#include "CreatureTextMgr.h"
#include "Group.h"
#include "PassiveAI.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "SpellAuras.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
/*
* Ordered alphabetically using scriptname.
* Scriptnames of files in this file should be prefixed with "npc_pet_gen_".
*/
enum soulTrader
{
@@ -833,3 +833,4 @@ void AddSC_generic_pet_scripts()
RegisterCreatureAI(npc_pet_gen_moth);
RegisterCreatureAI(npc_pet_darting_hatchling);
}

View File

@@ -20,7 +20,8 @@
* Scriptnames of files in this file should be prefixed with "npc_pet_hun_".
*/
#include "ScriptMgr.h"
#include "CreatureScript.h"
#include "PetDefines.h"
#include "ScriptedCreature.h"
enum HunterSpells

View File

@@ -21,9 +21,9 @@
*/
#include "CombatAI.h"
#include "CreatureScript.h"
#include "Pet.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuras.h"

View File

@@ -20,9 +20,9 @@
* Scriptnames of files in this file should be prefixed with "npc_pet_pri_".
*/
#include "CreatureScript.h"
#include "PassiveAI.h"
#include "PetAI.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "TotemAI.h"

View File

@@ -20,8 +20,8 @@
* Scriptnames of files in this file should be prefixed with "npc_pet_sha_".
*/
#include "CreatureScript.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
enum ShamanSpells