Core: SOme code cleanup, more to follow.

This commit is contained in:
hondacrx
2021-03-20 22:48:48 -04:00
parent 62f554f2e0
commit 62ec699ec6
318 changed files with 5080 additions and 5125 deletions
@@ -26,9 +26,9 @@ namespace Game.Entities
{
uint MapId;
uint BlockCount;
List<ObjectGuid> destroyGUIDs = new List<ObjectGuid>();
List<ObjectGuid> outOfRangeGUIDs = new List<ObjectGuid>();
ByteBuffer data = new ByteBuffer();
List<ObjectGuid> destroyGUIDs = new();
List<ObjectGuid> outOfRangeGUIDs = new();
ByteBuffer data = new();
public UpdateData(uint mapId)
{
@@ -63,7 +63,7 @@ namespace Game.Entities
packet.NumObjUpdates = BlockCount;
packet.MapID = (ushort)MapId;
WorldPacket buffer = new WorldPacket();
WorldPacket buffer = new();
if (buffer.WriteBit(!outOfRangeGUIDs.Empty() || !destroyGUIDs.Empty()))
{
buffer.WriteUInt16((ushort)destroyGUIDs.Count);