mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 23:56:25 +00:00
refactor(Core/Packets): Rewrite MSG_MINIMAP_PING to modern packet class. (#22696)
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "LFGMgr.h"
|
||||
#include "Log.h"
|
||||
#include "MapMgr.h"
|
||||
#include "MiscPackets.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "Opcodes.h"
|
||||
#include "Player.h"
|
||||
@@ -2059,6 +2060,16 @@ GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue(Battleground const*
|
||||
return GroupJoinBattlegroundResult(bgTemplate->GetBgTypeID());
|
||||
}
|
||||
|
||||
void Group::DoMinimapPing(ObjectGuid sourceGuid, float mapX, float mapY)
|
||||
{
|
||||
WorldPackets::Misc::MinimapPing minimapPing;
|
||||
minimapPing.SourceGuid = sourceGuid;
|
||||
minimapPing.MapX = mapX;
|
||||
minimapPing.MapY = mapY;
|
||||
|
||||
BroadcastPacket(minimapPing.Write(), true, -1, sourceGuid);
|
||||
}
|
||||
|
||||
//===================================================
|
||||
//============== Roll ===============================
|
||||
//===================================================
|
||||
|
||||
@@ -255,6 +255,8 @@ public:
|
||||
void SetBattlefieldGroup(Battlefield* bf);
|
||||
GroupJoinBattlegroundResult CanJoinBattlegroundQueue(Battleground const* bgTemplate, BattlegroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 MaxPlayerCount, bool isRated, uint32 arenaSlot);
|
||||
|
||||
void DoMinimapPing(ObjectGuid sourceGuid, float mapX, float mapY);
|
||||
|
||||
void ChangeMembersGroup(ObjectGuid guid, uint8 group);
|
||||
void SetTargetIcon(uint8 id, ObjectGuid whoGuid, ObjectGuid targetGuid);
|
||||
void SetGroupMemberFlag(ObjectGuid guid, bool apply, GroupMemberFlags flag);
|
||||
|
||||
Reference in New Issue
Block a user