Core/OutdoorPvP: Refactor OutdoorPvP creation to be linked to host map creation instead of having globally accessible objects
This commit is contained in:
1 parent
51363865bc
commit
2a39dece9e
18 files changed
+92
-136
No files matched your search
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user