Core/PacketIO: Moved SMSG_ADD_RUNE_POWER to packet classes
This commit is contained in:
@@ -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) { }
|
||||
|
||||
Reference in New Issue
Block a user