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

#include "AccountScript.h"

Inheritance diagram for AccountScript:
ScriptObject AccountActionIpLogger

Public Member Functions

virtual void OnAccountLogin (uint32)
 
virtual void OnBeforeAccountDelete (uint32)
 
virtual void OnLastIpUpdate (uint32, std::string)
 
virtual void OnFailedAccountLogin (uint32)
 
virtual void OnEmailChange (uint32)
 
virtual void OnFailedEmailChange (uint32)
 
virtual void OnPasswordChange (uint32)
 
virtual void OnFailedPasswordChange (uint32)
 
virtual bool CanAccountCreateCharacter (uint32, uint8, uint8)
 
- 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

 AccountScript (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

◆ AccountScript()

AccountScript::AccountScript ( const char *  name,
std::vector< uint16 enabledHooks = std::vector<uint16>() 
)
protected
67 :
69{
70 // If empty - enable all available hooks.
71 if (enabledHooks.empty())
72 for (uint16 i = 0; i < ACCOUNTHOOK_END; ++i)
73 enabledHooks.emplace_back(i);
74
75 ScriptRegistry<AccountScript>::AddScript(this, std::move(enabledHooks));
76}
std::uint16_t uint16
Definition: Define.h:108
@ ACCOUNTHOOK_END
Definition: AccountScript.h:35
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44

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

Member Function Documentation

◆ CanAccountCreateCharacter()

virtual bool AccountScript::CanAccountCreateCharacter ( uint32  ,
uint8  ,
uint8   
)
inlinevirtual
69{ return true;}

◆ OnAccountLogin()

virtual void AccountScript::OnAccountLogin ( uint32  )
inlinevirtual

Reimplemented in AccountActionIpLogger.

45{ }

◆ OnBeforeAccountDelete()

virtual void AccountScript::OnBeforeAccountDelete ( uint32  )
inlinevirtual
48{ }

◆ OnEmailChange()

virtual void AccountScript::OnEmailChange ( uint32  )
inlinevirtual

Reimplemented in AccountActionIpLogger.

57{ }

◆ OnFailedAccountLogin()

virtual void AccountScript::OnFailedAccountLogin ( uint32  )
inlinevirtual

Reimplemented in AccountActionIpLogger.

54{ }

◆ OnFailedEmailChange()

virtual void AccountScript::OnFailedEmailChange ( uint32  )
inlinevirtual

Reimplemented in AccountActionIpLogger.

60{ }

◆ OnFailedPasswordChange()

virtual void AccountScript::OnFailedPasswordChange ( uint32  )
inlinevirtual

Reimplemented in AccountActionIpLogger.

66{ }

◆ OnLastIpUpdate()

virtual void AccountScript::OnLastIpUpdate ( uint32  ,
std::string   
)
inlinevirtual
51{ }

◆ OnPasswordChange()

virtual void AccountScript::OnPasswordChange ( uint32  )
inlinevirtual

Reimplemented in AccountActionIpLogger.

63{ }