Core/Packets: converted SMSG_CORPSE_RECLAIM_DELAY to packet class
This commit is contained in:
1 parent
0ae10d09a2
commit
974f3163bc
3 files changed
+20
-3
No files matched your search
@@ -24955,9 +24955,9 @@ int32 Player::CalculateCorpseReclaimDelay(bool load) const
|
||||
|
||||
void Player::SendCorpseReclaimDelay(uint32 delay) const
|
||||
{
|
||||
WorldPacket data(SMSG_CORPSE_RECLAIM_DELAY, 4);
|
||||
data << uint32(delay);
|
||||
SendDirectMessage(&data);
|
||||
WorldPackets::Misc::CorpseReclaimDelay packet;
|
||||
packet.Remaining = delay;
|
||||
SendDirectMessage(packet.Write());
|
||||
}
|
||||
|
||||
Player* Player::GetNextRandomRaidMember(float radius)
|
||||
|
||||
@@ -477,3 +477,10 @@ WorldPacket const* WorldPackets::Misc::RequestCemeteryListResponse::Write()
|
||||
|
||||
return &_worldPacket;
|
||||
}
|
||||
|
||||
WorldPacket const* WorldPackets::Misc::CorpseReclaimDelay::Write()
|
||||
{
|
||||
_worldPacket << uint32(Remaining);
|
||||
|
||||
return &_worldPacket;
|
||||
}
|
||||
@@ -509,6 +509,16 @@ namespace WorldPackets
|
||||
bool IsGossipTriggered = false;
|
||||
std::vector<uint32> CemeteryID;
|
||||
};
|
||||
|
||||
class CorpseReclaimDelay final : public ServerPacket
|
||||
{
|
||||
public:
|
||||
CorpseReclaimDelay() : ServerPacket(SMSG_CORPSE_RECLAIM_DELAY, 4) { }
|
||||
|
||||
WorldPacket const* Write() override;
|
||||
|
||||
uint32 Remaining = 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user