Core/PacketIO: Moved SMSG_ADD_RUNE_POWER to packet classes

This commit is contained in:
hondacrx
2018-08-26 01:23:03 -04:00
parent f87224ac3d
commit 7a9edc07b2
2 changed files with 12 additions and 7 deletions
@@ -3110,13 +3110,6 @@ namespace Game.Entities
SendPacket(data);
}
void AddRunePower(byte index)
{
//WorldPacket data(SMSG_ADD_RUNE_POWER, 4);
//data << uint32(1 << index); // mask (0x00-0x3F probably)
//SendPacket(&data);
}
public void InitRunes()
{
if (GetClass() != Class.Deathknight)
@@ -968,6 +968,18 @@ namespace Game.Network.Packets
public RuneData Runes = new RuneData();
}
class AddRunePower : ServerPacket
{
public AddRunePower() : base(ServerOpcodes.AddRunePower, ConnectionType.Instance) { }
public override void Write()
{
_worldPacket.WriteUInt32(AddedRunesMask);
}
public uint AddedRunesMask;
}
class MissileTrajectoryCollision : ClientPacket
{
public MissileTrajectoryCollision(WorldPacket packet) : base(packet) { }