From 6d1eb573bc230685efa266cf3e880e5280e94320 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Fri, 8 Dec 2023 22:04:53 +0100 Subject: [PATCH] Scripts/Events: moved scripts into their respective namespace --- src/server/scripts/Events/childrens_week.cpp | 4 ++++ src/server/scripts/Events/fireworks_show.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/server/scripts/Events/childrens_week.cpp b/src/server/scripts/Events/childrens_week.cpp index a8622f5e043..97471e2b039 100644 --- a/src/server/scripts/Events/childrens_week.cpp +++ b/src/server/scripts/Events/childrens_week.cpp @@ -22,6 +22,8 @@ #include "ScriptedCreature.h" #include "SpellAuras.h" +namespace ChildrendsWeek +{ enum Orphans { ORPHAN_ORACLE = 33533, @@ -1115,9 +1117,11 @@ class npc_grizzlemaw_cw_trigger : public CreatureScript return new npc_grizzlemaw_cw_triggerAI(creature); } }; +} void AddSC_event_childrens_week() { + using namespace ChildrendsWeek; new npc_elder_kekek(); new npc_high_oracle_soo_roo(); new npc_winterfin_playmate(); diff --git a/src/server/scripts/Events/fireworks_show.cpp b/src/server/scripts/Events/fireworks_show.cpp index 603d5b7a83f..e258aaf7485 100644 --- a/src/server/scripts/Events/fireworks_show.cpp +++ b/src/server/scripts/Events/fireworks_show.cpp @@ -24,6 +24,8 @@ #include "GameObjectAI.h" #include "GameTime.h" +namespace FireworksShow +{ enum FireworksShowTypeObjects { FIREWORK_SHOW_TYPE_1_RED = 180703, @@ -897,8 +899,10 @@ class go_cheer_speaker : public GameObjectScript return new go_cheer_speakerAI(go); } }; +} void AddSC_event_fireworks() { + using namespace FireworksShow; new go_cheer_speaker(); }