Some refactoring of code. and some cleanups

This commit is contained in:
hondacrx
2019-09-21 12:11:16 -04:00
parent 7c405230cc
commit 35c06c09fd
214 changed files with 1235 additions and 1341 deletions
+6 -6
View File
@@ -25,6 +25,9 @@ namespace Game.Entities
public static ObjectGuid Empty = new ObjectGuid();
public static ObjectGuid TradeItem = Create(HighGuid.Uniq, 10ul);
ulong _low;
ulong _high;
public ObjectGuid(ulong high, ulong low)
{
_low = low;
@@ -321,13 +324,13 @@ namespace Game.Entities
return false;
}
}
ulong _low;
ulong _high;
}
public class ObjectGuidGenerator
{
ulong _nextGuid;
HighGuid _highGuid;
public ObjectGuidGenerator(HighGuid highGuid, ulong start = 1)
{
_highGuid = highGuid;
@@ -350,8 +353,5 @@ namespace Game.Entities
Log.outFatal(LogFilter.Server, "{0} guid overflow!! Can't continue, shutting down server. ", _highGuid);
Global.WorldMgr.StopNow();
}
ulong _nextGuid;
HighGuid _highGuid;
}
}