mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Battlefields: Refactor Battlefield creation to be linked to host map creation instead of having globally accessible objects
This commit is contained in:
@@ -522,7 +522,7 @@ class TC_GAME_API BattlefieldScript : public ScriptObject
|
||||
|
||||
~BattlefieldScript();
|
||||
|
||||
virtual Battlefield* GetBattlefield() const = 0;
|
||||
virtual Battlefield* GetBattlefield(Map* map) const = 0;
|
||||
};
|
||||
|
||||
class TC_GAME_API BattlegroundScript : public ScriptObject
|
||||
@@ -1146,7 +1146,7 @@ class TC_GAME_API ScriptMgr
|
||||
|
||||
public: /* BattlefieldScript */
|
||||
|
||||
Battlefield* CreateBattlefield(uint32 scriptId);
|
||||
Battlefield* CreateBattlefield(uint32 scriptId, Map* map);
|
||||
|
||||
public: /* BattlegroundScript */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user