Core/OutdoorPvP: Refactor OutdoorPvP creation to be linked to host map creation instead of having globally accessible objects

This commit is contained in:
Shauren authored and Ovahlord committed 2022-12-26 12:33:45 +01:00
1 parent 51363865bc
commit 2a39dece9e
18 files changed
+92 -136

No files matched your search

+2 -2
View File
@@ -486,7 +486,7 @@ class TC_GAME_API OutdoorPvPScript : public ScriptObject
public:
// 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
@@ -956,7 +956,7 @@ class TC_GAME_API ScriptMgr
public: /* OutdoorPvPScript */
OutdoorPvP* CreateOutdoorPvP(uint32 scriptId);
OutdoorPvP* CreateOutdoorPvP(uint32 scriptId, Map* map);
public: /* CommandScript */