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,6 +15,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AchievementCriteriaScript.h"
#include "BattlegroundAB.h"
#include "BattlegroundAV.h"
#include "BattlegroundIC.h"
@@ -22,7 +23,6 @@
#include "BattlegroundWS.h"
#include "Creature.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "Vehicle.h"
class achievement_resilient_victory : public AchievementCriteriaScript

View File

@@ -15,10 +15,12 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AccountScript.h"
#include "Channel.h"
#include "CreatureScript.h"
#include "Group.h"
#include "Guild.h"
#include "ScriptMgr.h"
#include "PlayerScript.h"
enum IPLoggingTypes
{

View File

@@ -15,6 +15,12 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AreaTriggerScript.h"
#include "CreatureScript.h"
#include "GameTime.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "SpellMgr.h"
/* ScriptData
SDName: Areatrigger_Scripts
SD%Complete: 100
@@ -34,12 +40,6 @@ at_brewfest
at_area_52_entrance
EndContentData */
#include "GameTime.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellMgr.h"
// Ours
class AreaTrigger_at_voltarus_middle : public AreaTriggerScript
{
@@ -496,3 +496,4 @@ void AddSC_areatrigger_scripts()
new AreaTrigger_at_brewfest();
new AreaTrigger_at_area_52_entrance();
}

View File

@@ -15,13 +15,14 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CreatureScript.h"
#include "GridNotifiers.h"
#include "PassiveAI.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
#include "TaskScheduler.h"
//
@@ -881,3 +882,4 @@ void AddSC_emerald_dragons()
new spell_mark_of_nature();
RegisterSpellScript(spell_shadow_bolt_whirl);
};

View File

@@ -16,10 +16,11 @@
*/
#include "Channel.h"
#include "CreatureScript.h"
#include "Group.h"
#include "Guild.h"
#include "Log.h"
#include "ScriptMgr.h"
#include "PlayerScript.h"
class ChatLogScript : public PlayerScript
{
@@ -142,3 +143,4 @@ void AddSC_chat_log()
{
new ChatLogScript();
}

View File

@@ -16,10 +16,12 @@
*/
#include "CellImpl.h"
#include "CreatureScript.h"
#include "GameEventMgr.h"
#include "GameObjectAI.h"
#include "GameObjectScript.h"
#include "GridNotifiersImpl.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "Spell.h"
@@ -1936,3 +1938,4 @@ void AddSC_go_scripts()
new go_veil_skith_cage();
new go_bells();
}

View File

@@ -28,9 +28,9 @@ guard_shattrath_aldor
guard_shattrath_scryer
EndContentData */
#include "CreatureScript.h"
#include "GuardAI.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellInfo.h"

View File

@@ -15,6 +15,11 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CreatureScript.h"
#include "ItemScript.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "Spell.h"
/* ScriptData
SDName: Item_Scripts
SD%Complete: 100
@@ -28,11 +33,6 @@ item_gor_dreks_ointment(i30175) Protecting Our Own(q10488)
item_only_for_flight Items which should only useable while flying
EndContentData */
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Spell.h"
/*#####
# item_only_for_flight
#####*/
@@ -256,3 +256,4 @@ void AddSC_item_scripts()
new item_captured_frog();
new item_generic_limit_chance_above_60();
}

View File

@@ -22,8 +22,8 @@ SDComment: Should be replaced with core based AI
SDCategory: Creatures
EndScriptData */
#include "CreatureScript.h"
#include "PassiveAI.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#define GENERIC_CREATURE_COOLDOWN 5000

View File

@@ -15,9 +15,9 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CreatureScript.h"
#include "GameEventMgr.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"

View File

@@ -15,6 +15,12 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CreatureScript.h"
#include "GameObjectScript.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "SpellInfo.h"
/* ScriptData
SDName: Npc_Professions
SD%Complete: 80
@@ -22,12 +28,6 @@ SDComment: Provides learn/unlearn/relearn-options for professions. Not supported
SDCategory: NPCs
EndScriptData */
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "SpellInfo.h"
/*
A few notes for future developement:
- A full implementation of gossip for GO's is required. They must have the same scripting capabilities as creatures. Basically,
@@ -1375,3 +1375,4 @@ void AddSC_npc_professions()
new npc_prof_tailor();
new go_evil_book_for_dummies();
}

View File

@@ -17,9 +17,9 @@
#include "npc_stave_of_ancients.h"
#include "CreatureGroups.h"
#include "CreatureScript.h"
#include "GameTime.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "Spell.h"

View File

@@ -18,7 +18,7 @@
#ifndef NPC_STAVE_OF_ANCIENTS_H
#define NPC_STAVE_OF_ANCIENTS_H
#include "ScriptMgr.h"
#include "CreatureScript.h"
#include "ScriptedCreature.h"
enum Common

View File

@@ -15,8 +15,8 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CreatureScript.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"

View File

@@ -18,6 +18,7 @@
#include "CellImpl.h"
#include "Chat.h"
#include "CombatAI.h"
#include "CreatureScript.h"
#include "CreatureTextMgr.h"
#include "GameEventMgr.h"
#include "GameTime.h"
@@ -25,7 +26,6 @@
#include "ObjectMgr.h"
#include "PassiveAI.h"
#include "Pet.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"

View File

@@ -15,8 +15,9 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CreatureScript.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "PlayerScript.h"
enum ApprenticeAnglerQuestEnum
{
@@ -70,3 +71,4 @@ void AddSC_player_scripts()
{
new QuestApprenticeAnglerPlayerScript();
}

View File

@@ -15,10 +15,11 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "CreatureScript.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "PlayerScript.h"
#include "QueryResult.h"
#include "ScriptMgr.h"
class ServerMailReward : public PlayerScript
{
@@ -49,3 +50,4 @@ void AddSC_server_mail()
{
new ServerMailReward();
}