Core/WorldStates: Migrate Wintergrasp worldstates to new system
Port From (https://github.com/TrinityCore/TrinityCore/commit/6285033ed5ba8f67330eca40c1ae4840882a98d3)
This commit is contained in:
@@ -22,6 +22,7 @@ using Game.Maps;
|
||||
using Game.Networking.Packets;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Framework.Constants;
|
||||
|
||||
namespace Game
|
||||
{
|
||||
@@ -112,6 +113,16 @@ namespace Game
|
||||
return map.GetWorldStateValue(worldStateId);
|
||||
}
|
||||
|
||||
public void SetValue(WorldStates worldStateId, int value, Map map)
|
||||
{
|
||||
SetValue((int)worldStateId, value, map);
|
||||
}
|
||||
|
||||
public void SetValue(uint worldStateId, int value, Map map)
|
||||
{
|
||||
SetValue((int)worldStateId, value, map);
|
||||
}
|
||||
|
||||
public void SetValue(int worldStateId, int value, Map map)
|
||||
{
|
||||
WorldStateTemplate worldStateTemplate = GetWorldStateTemplate(worldStateId);
|
||||
|
||||
Reference in New Issue
Block a user