Core/Misc: Move WorldState enum to SharedDefines
Port From (https://github.com/TrinityCore/TrinityCore/commit/ca62d93481f60807679c8632e09fa6f48f29de68)
This commit is contained in:
@@ -729,9 +729,9 @@ namespace Game.Entities
|
||||
BattleField wg = Global.BattleFieldMgr.GetBattlefieldByBattleId(1);//Wintergrasp battle
|
||||
if (wg != null)
|
||||
{
|
||||
SendUpdateWorldState(3801, (uint)(wg.IsWarTime() ? 0 : 1));
|
||||
SendUpdateWorldState(WorldStates.BattlefieldWgActive, (uint)(wg.IsWarTime() ? 0 : 1));
|
||||
uint timer = wg.IsWarTime() ? 0 : (wg.GetTimer() / 1000); // 0 - Time to next battle
|
||||
SendUpdateWorldState(4354, (uint)(GameTime.GetGameTime() + timer));
|
||||
SendUpdateWorldState(WorldStates.BattlefieldWgTimeNextBattle, (uint)(GameTime.GetGameTime() + timer));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2837,6 +2837,11 @@ namespace Game.Entities
|
||||
|
||||
public CinematicManager GetCinematicMgr() { return _cinematicMgr; }
|
||||
|
||||
public void SendUpdateWorldState(WorldStates variable, uint value, bool hidden = false)
|
||||
{
|
||||
SendUpdateWorldState((uint)variable, value, hidden);
|
||||
}
|
||||
|
||||
public void SendUpdateWorldState(uint variable, uint value, bool hidden = false)
|
||||
{
|
||||
UpdateWorldState worldstate = new();
|
||||
|
||||
Reference in New Issue
Block a user