Core/Commands: Add .debug guidlimits <optional map id> chat command

Port From (https://github.com/TrinityCore/TrinityCore/commit/e7b94603f256386eae8a9724c830d37593c0f0e1)
This commit is contained in:
hondacrx
2022-01-20 12:31:56 -05:00
parent fa12cf63bc
commit f87f58e35f
2 changed files with 40 additions and 19 deletions
+5 -2
View File
@@ -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))