30 PreMatchRating(0), PreMatchMMR(0), PostMatchRating(0), PostMatchMMR(0), _validPvpStatIds(pvpStatIds)
62 ABORT_MSG(
"Not implemented Battleground score type %u!", type);
74 TC_LOG_WARN(
"bg.scores",
"Tried updating PvpStat {} but this stat is not allowed on this map", pvpStatID);
85 auto const& itr = std::next(
PvpStats.begin(), index);
99 playerData.
Honor.emplace();
120 for (
const auto& [pvpStatID, value] :
PvpStats)
121 playerData.
Stats.emplace_back(pvpStatID, value);
126 std::ostringstream stream;
@ TrackedWorldStateUIModified
#define TC_LOG_WARN(filterType__, message__,...)
TC_GAME_API Player * FindConnectedPlayer(ObjectGuid const &)
virtual ~BattlegroundScore()
BattlegroundScore(ObjectGuid playerGuid, uint32 team, std::unordered_set< uint32 > const *pvpStatIds)
void BuildPvPLogPlayerDataPacket(WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics &playerData) const
void UpdateScore(uint32 type, uint32 value)
std::string ToString() const
std::unordered_set< uint32 > const * _validPvpStatIds
void UpdatePvpStat(uint32 pvpStatID, uint32 value)
std::map< uint32, uint32 > PvpStats
uint32 GetAttr(uint8 index) const
Optional< HonorData > Honor
Optional< uint32 > PreMatchRating
Optional< int32 > RatingChange
std::vector< PVPMatchPlayerPVPStat > Stats
Optional< int32 > MmrChange
Optional< uint32 > PreMatchMMR