diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-07-18 22:45:03 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-07-18 22:45:03 +0200 |
commit | 775be0682a794d0a1f62d656f8c6c6dffca8de79 (patch) | |
tree | 088bbc4b6aef8953d5b6d186d0d06dd2cef2469e /src/server/game/Scripting/ScriptMgr.h | |
parent | 21ae3766928641c7af24cd96544fc5b115461e82 (diff) |
Core/OutdoorPvP: Refactor OutdoorPvP creation to be linked to host map creation instead of having globally accessible objects
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.h')
-rw-r--r-- | src/server/game/Scripting/ScriptMgr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h index e5fd8bee5b9..d729a0309f0 100644 --- a/src/server/game/Scripting/ScriptMgr.h +++ b/src/server/game/Scripting/ScriptMgr.h @@ -550,7 +550,7 @@ class TC_GAME_API OutdoorPvPScript : public ScriptObject ~OutdoorPvPScript(); // Should return a fully valid OutdoorPvP object for the type ID. - virtual OutdoorPvP* GetOutdoorPvP() const = 0; + virtual OutdoorPvP* GetOutdoorPvP(Map* map) const = 0; }; class TC_GAME_API CommandScript : public ScriptObject @@ -1154,7 +1154,7 @@ class TC_GAME_API ScriptMgr public: /* OutdoorPvPScript */ - OutdoorPvP* CreateOutdoorPvP(uint32 scriptId); + OutdoorPvP* CreateOutdoorPvP(uint32 scriptId, Map* map); public: /* CommandScript */ |