Core/PacketIO: Convert all leftover packets to use packet classes

Port From (https://github.com/TrinityCore/TrinityCore/commit/661470c6587c11e3fa94d2e8b57c92d8be2e297b)
This commit is contained in:
hondacrx
2020-07-14 23:00:31 -04:00
parent 4bb9823456
commit baa9ab6558
15 changed files with 251 additions and 186 deletions
+4 -4
View File
@@ -613,15 +613,15 @@ namespace Game
GetPlayer().StoreItem(dest, item, true);
}
public void SendEnchantmentLog(ObjectGuid owner, ObjectGuid caster, ObjectGuid itemGuid, uint itemId, uint enchantId, uint slot)
public void SendEnchantmentLog(ObjectGuid owner, ObjectGuid caster, ObjectGuid itemGuid, uint itemId, uint enchantId, uint enchantSlot)
{
EnchantmentLog packet = new EnchantmentLog();
packet.Caster = caster;
EnchantmentLog packet = new EnchantmentLog();
packet.Owner = owner;
packet.Caster = caster;
packet.ItemGUID = itemGuid;
packet.ItemID = itemId;
packet.Enchantment = enchantId;
packet.EnchantSlot = slot;
packet.EnchantSlot = enchantSlot;
GetPlayer().SendMessageToSet(packet, true);
}