mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
refactor(Core/Misc): acore to Acore (#6043)
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#ifdef ELUNA
|
||||
#include "LuaEngine.h"
|
||||
#endif
|
||||
namespace acore
|
||||
namespace Acore
|
||||
{
|
||||
class BattlegroundChatBuilder
|
||||
{
|
||||
@@ -101,7 +101,7 @@ namespace acore
|
||||
uint32 _arg1;
|
||||
uint32 _arg2;
|
||||
};
|
||||
} // namespace acore
|
||||
} // namespace Acore
|
||||
|
||||
template<class Do>
|
||||
void Battleground::BroadcastWorker(Do& _do)
|
||||
@@ -1067,7 +1067,7 @@ uint32 Battleground::GetBonusHonorFromKill(uint32 kills) const
|
||||
{
|
||||
//variable kills means how many honorable kills you scored (so we need kills * honor_for_one_kill)
|
||||
uint32 maxLevel = std::min<uint32>(GetMaxLevel(), 80U);
|
||||
return acore::Honor::hk_honor_at_level(maxLevel, float(kills));
|
||||
return Acore::Honor::hk_honor_at_level(maxLevel, float(kills));
|
||||
}
|
||||
|
||||
void Battleground::BlockMovement(Player* player)
|
||||
@@ -1749,8 +1749,8 @@ void Battleground::SendMessageToAll(uint32 entry, ChatMsg type, Player const* so
|
||||
if (!entry)
|
||||
return;
|
||||
|
||||
acore::BattlegroundChatBuilder bg_builder(type, entry, source);
|
||||
acore::LocalizedPacketDo<acore::BattlegroundChatBuilder> bg_do(bg_builder);
|
||||
Acore::BattlegroundChatBuilder bg_builder(type, entry, source);
|
||||
Acore::LocalizedPacketDo<Acore::BattlegroundChatBuilder> bg_do(bg_builder);
|
||||
BroadcastWorker(bg_do);
|
||||
}
|
||||
|
||||
@@ -1762,8 +1762,8 @@ void Battleground::PSendMessageToAll(uint32 entry, ChatMsg type, Player const* s
|
||||
va_list ap;
|
||||
va_start(ap, source);
|
||||
|
||||
acore::BattlegroundChatBuilder bg_builder(type, entry, source, &ap);
|
||||
acore::LocalizedPacketDo<acore::BattlegroundChatBuilder> bg_do(bg_builder);
|
||||
Acore::BattlegroundChatBuilder bg_builder(type, entry, source, &ap);
|
||||
Acore::LocalizedPacketDo<Acore::BattlegroundChatBuilder> bg_do(bg_builder);
|
||||
BroadcastWorker(bg_do);
|
||||
|
||||
va_end(ap);
|
||||
@@ -1796,8 +1796,8 @@ void Battleground::SendWarningToAll(uint32 entry, ...)
|
||||
|
||||
void Battleground::SendMessage2ToAll(uint32 entry, ChatMsg type, Player const* source, uint32 arg1, uint32 arg2)
|
||||
{
|
||||
acore::Battleground2ChatBuilder bg_builder(type, entry, source, arg1, arg2);
|
||||
acore::LocalizedPacketDo<acore::Battleground2ChatBuilder> bg_do(bg_builder);
|
||||
Acore::Battleground2ChatBuilder bg_builder(type, entry, source, arg1, arg2);
|
||||
Acore::LocalizedPacketDo<Acore::Battleground2ChatBuilder> bg_do(bg_builder);
|
||||
BroadcastWorker(bg_do);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user