Core/Misc: Move WorldState enum to SharedDefines
Port From (https://github.com/TrinityCore/TrinityCore/commit/ca62d93481f60807679c8632e09fa6f48f29de68)
This commit is contained in:
@@ -38,11 +38,21 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public void AddState(WorldStates variableID, int value)
|
||||
{
|
||||
AddState((uint)variableID, value);
|
||||
}
|
||||
|
||||
public void AddState(uint variableID, int value)
|
||||
{
|
||||
Worldstates.Add(new WorldStateInfo(variableID, value));
|
||||
}
|
||||
|
||||
public void AddState(WorldStates variableID, bool value)
|
||||
{
|
||||
AddState((uint)variableID, value);
|
||||
}
|
||||
|
||||
public void AddState(uint variableID, bool value)
|
||||
{
|
||||
Worldstates.Add(new WorldStateInfo(variableID, value ? 1 : 0));
|
||||
|
||||
Reference in New Issue
Block a user