feat(Core/Commands): Arena command (#1798)

* New arena command
This commit is contained in:
IntelligentQuantum
2019-05-13 10:46:57 +04:30
committed by Poszer
parent b7863dc4f1
commit 9a7084e42d
8 changed files with 384 additions and 4 deletions
+3 -1
View File
@@ -77,7 +77,7 @@ enum ArenaTeamTypes
struct ArenaTeamMember
{
uint64 Guid;
//std::string Name;
std::string Name;
uint8 Class;
uint16 WeekGames;
uint16 WeekWins;
@@ -111,6 +111,7 @@ class ArenaTeam
bool Create(uint64 captainGuid, uint8 type, std::string const& teamName, uint32 backgroundColor, uint8 emblemStyle, uint32 emblemColor, uint8 borderStyle, uint32 borderColor);
void Disband(WorldSession* session);
void Disband();
typedef std::list<ArenaTeamMember> MemberList;
@@ -126,6 +127,7 @@ class ArenaTeam
uint32 GetAverageMMR(Group* group) const;
void SetCaptain(uint64 guid);
bool SetName(std::string const& name);
bool AddMember(uint64 playerGuid);
// Shouldn't be uint64 ed, because than can reference guid from members on Disband