#include "GameEventScript.h"
◆ GameEventScript()
GameEventScript::GameEventScript |
( |
const char * |
name, |
|
|
std::vector< uint16 > |
enabledHooks = std::vector<uint16>() |
|
) |
| |
|
protected |
39{
40
41 if (enabledHooks.empty())
43 enabledHooks.emplace_back(i);
44
46}
std::uint16_t uint16
Definition: Define.h:108
@ GAMEEVENTHOOK_END
Definition: GameEventScript.h:29
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:738
Definition: ScriptObject.h:43
References ScriptRegistry< TScript >::AddScript(), and GAMEEVENTHOOK_END.
◆ OnEventCheck()
virtual void GameEventScript::OnEventCheck |
( |
uint16 |
| ) |
|
|
inlinevirtual |
◆ OnStart()
virtual void GameEventScript::OnStart |
( |
uint16 |
| ) |
|
|
inlinevirtual |
◆ OnStop()
virtual void GameEventScript::OnStop |
( |
uint16 |
| ) |
|
|
inlinevirtual |