Core/PacketIO: updated SMSG_CONVERT_RUNE and SMSG_RESYNC_RUNES

This commit is contained in:
MitchesD
2015-07-23 22:00:40 +02:00
parent fb09d62962
commit a487ddad4e
4 changed files with 60 additions and 11 deletions
@@ -745,3 +745,23 @@ void WorldPackets::Spells::SpellClick::Read()
_worldPacket >> SpellClickUnitGuid;
TryAutoDismount = _worldPacket.ReadBit();
}
WorldPacket const* WorldPackets::Spells::ConvertRune::Write()
{
_worldPacket << uint8(Index);
_worldPacket << uint8(Rune);
return &_worldPacket;
}
WorldPacket const* WorldPackets::Spells::ResyncRunes::Write()
{
_worldPacket << uint32(Runes.size());
for (auto const& rune : Runes)
{
_worldPacket << uint8(rune.RuneType);
_worldPacket << uint8(rune.Cooldown);
}
return &_worldPacket;
}