Core/Commands: Add .debug guidlimits <optional map id> chat command
Port From (https://github.com/TrinityCore/TrinityCore/commit/e7b94603f256386eae8a9724c830d37593c0f0e1)
This commit is contained in:
@@ -4087,11 +4087,14 @@ namespace Game.Maps
|
||||
|
||||
public ulong GenerateLowGuid(HighGuid high)
|
||||
{
|
||||
//Cypher.Assert(!ObjectGuid.IsMapSpecific(high), "Only map specific guid can be generated in Map context");
|
||||
|
||||
return GetGuidSequenceGenerator(high).Generate();
|
||||
}
|
||||
|
||||
public ulong GetMaxLowGuid(HighGuid high)
|
||||
{
|
||||
return GetGuidSequenceGenerator(high).GetNextAfterMaxUsed();
|
||||
}
|
||||
|
||||
ObjectGuidGenerator GetGuidSequenceGenerator(HighGuid high)
|
||||
{
|
||||
if (!_guidGenerators.ContainsKey(high))
|
||||
|
||||
Reference in New Issue
Block a user