added enum for battlefield leave reason.
This commit is contained in:
@@ -26,6 +26,15 @@
|
||||
#include "BattlefieldMgr.h"
|
||||
#include "Opcodes.h"
|
||||
|
||||
enum BFLeaveReason
|
||||
{
|
||||
BF_LEAVE_REASON_CLOSE = 0x00000001,
|
||||
//BF_LEAVE_REASON_UNK1 = 0x00000002, (not used)
|
||||
//BF_LEAVE_REASON_UNK2 = 0x00000004, (not used)
|
||||
BF_LEAVE_REASON_EXITED = 0x00000008,
|
||||
BF_LEAVE_REASON_LOW_LEVEL = 0x00000010,
|
||||
};
|
||||
|
||||
//This send to player windows for invite player to join the war
|
||||
//Param1:(BattleId) the BattleId of Bf
|
||||
//Param2:(ZoneId) the zone where the battle is (4197 for wg)
|
||||
@@ -84,7 +93,7 @@ void WorldSession::SendBfEntered(uint32 BattleId)
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
||||
void WorldSession::SendBfLeaveMessage(uint32 BattleId, uint8 reason)
|
||||
void WorldSession::SendBfLeaveMessage(uint32 BattleId, BFLeaveReason reason)
|
||||
{
|
||||
WorldPacket data(SMSG_BATTLEFIELD_MGR_EJECTED, 7);
|
||||
data << uint32(BattleId);
|
||||
|
||||
@@ -792,7 +792,7 @@ class WorldSession
|
||||
void SendBfInvitePlayerToQueue(uint32 BattleId);
|
||||
void SendBfQueueInviteResponce(uint32 BattleId,uint32 ZoneId, bool CanQueue = true, bool Full = false);
|
||||
void SendBfEntered(uint32 BattleId);
|
||||
void SendBfLeaveMessage(uint32 BattleId, uint8 reason = 8);
|
||||
void SendBfLeaveMessage(uint32 BattleId, BFLeaveReason reason = BF_LEAVE_REASON_EXITED);
|
||||
void HandleBfQueueInviteResponse(WorldPacket &recv_data);
|
||||
void HandleBfEntryInviteResponse(WorldPacket &recv_data);
|
||||
void HandleBfExitRequest(WorldPacket &recv_data);
|
||||
|
||||
Reference in New Issue
Block a user