Core/WorldStates: Migrate Wintergrasp worldstates to new system

Port From (https://github.com/TrinityCore/TrinityCore/commit/6285033ed5ba8f67330eca40c1ae4840882a98d3)
This commit is contained in:
hondacrx
2022-06-27 16:45:31 -04:00
parent 2ea34c42fa
commit 9cece8cc8a
7 changed files with 82 additions and 97 deletions
+11
View File
@@ -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);