AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ArenaTeamScript Class Reference

#include "ArenaTeamScript.h"

Inheritance diagram for ArenaTeamScript:
ScriptObject

Public Member Functions

bool IsDatabaseBound () const override
 
virtual void OnGetSlotByType (const uint32, uint8 &)
 
virtual void OnGetArenaPoints (ArenaTeam *, float &)
 
virtual void OnTypeIDToQueueID (const BattlegroundTypeId, const uint8, uint32 &)
 
virtual void OnQueueIdToArenaType (const BattlegroundQueueTypeId, uint8 &)
 
virtual void OnSetArenaMaxPlayersPerTeam (const uint8, uint32 &)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 ArenaTeamScript (const char *name, std::vector< uint16 > enabledHooks=std::vector< uint16 >())
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ ArenaTeamScript()

ArenaTeamScript::ArenaTeamScript ( const char *  name,
std::vector< uint16 enabledHooks = std::vector<uint16>() 
)
protected
49{
50 // If empty - enable all available hooks.
51 if (enabledHooks.empty())
52 for (uint16 i = 0; i < ARENATEAMHOOK_END; ++i)
53 enabledHooks.emplace_back(i);
54
55 ScriptRegistry<ArenaTeamScript>::AddScript(this, std::move(enabledHooks));
56}
std::uint16_t uint16
Definition: Define.h:108
@ ARENATEAMHOOK_END
Definition: ArenaTeamScript.h:32
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:738
Definition: ScriptObject.h:43

References ScriptRegistry< TScript >::AddScript(), and ARENATEAMHOOK_END.

Member Function Documentation

◆ IsDatabaseBound()

bool ArenaTeamScript::IsDatabaseBound ( ) const
inlineoverridevirtual

Reimplemented from ScriptObject.

41{ return false; };

◆ OnGetArenaPoints()

virtual void ArenaTeamScript::OnGetArenaPoints ( ArenaTeam ,
float &   
)
inlinevirtual
44{}

◆ OnGetSlotByType()

virtual void ArenaTeamScript::OnGetSlotByType ( const  uint32,
uint8  
)
inlinevirtual
43{}

◆ OnQueueIdToArenaType()

virtual void ArenaTeamScript::OnQueueIdToArenaType ( const  BattlegroundQueueTypeId,
uint8  
)
inlinevirtual
46{}

◆ OnSetArenaMaxPlayersPerTeam()

virtual void ArenaTeamScript::OnSetArenaMaxPlayersPerTeam ( const  uint8,
uint32  
)
inlinevirtual
47{}

◆ OnTypeIDToQueueID()

virtual void ArenaTeamScript::OnTypeIDToQueueID ( const  BattlegroundTypeId,
const  uint8,
uint32  
)
inlinevirtual
45{}