mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-04 11:33:48 +00:00
feat(Core/Battlegrounds): Implemented new timed config for queue anno… (#8053)
* feat(Core/Battlegrounds): Implemented new timed config for queue announce system. Closes #6637. * Update. * typo. * Update.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "DBCEnums.h"
|
||||
#include "EventProcessor.h"
|
||||
#include <deque>
|
||||
#include <array>
|
||||
|
||||
#define COUNT_OF_PLAYERS_TO_AVERAGE_WAIT_TIME 10
|
||||
|
||||
@@ -54,7 +55,7 @@ public:
|
||||
BattlegroundQueue();
|
||||
~BattlegroundQueue();
|
||||
|
||||
void BattlegroundQueueUpdate(BattlegroundBracketId bracket_id, bool isRated, uint32 arenaRatedTeamId);
|
||||
void BattlegroundQueueUpdate(uint32 diff, BattlegroundBracketId bracket_id, bool isRated, uint32 arenaRatedTeamId);
|
||||
void UpdateEvents(uint32 diff);
|
||||
|
||||
void FillPlayersToBG(Battleground* bg, int32 aliFree, int32 hordeFree, BattlegroundBracketId bracket_id);
|
||||
@@ -115,6 +116,10 @@ public:
|
||||
|
||||
ArenaType GetArenaType() { return m_arenaType; }
|
||||
BattlegroundTypeId GetBGTypeID() { return m_bgTypeId; }
|
||||
|
||||
void SetQueueAnnouncementTimer(uint32 bracketId, int32 timer) { _queueAnnouncementTimer[bracketId] = timer; }
|
||||
[[nodiscard]] int32 GetQueueAnnouncementTimer(uint32 bracketId) { return _queueAnnouncementTimer[bracketId]; }
|
||||
|
||||
private:
|
||||
BattlegroundTypeId m_bgTypeId;
|
||||
ArenaType m_arenaType;
|
||||
@@ -123,6 +128,8 @@ private:
|
||||
|
||||
// Event handler
|
||||
EventProcessor m_events;
|
||||
|
||||
std::array<int32, BG_BRACKET_ID_LAST> _queueAnnouncementTimer;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user