#include "SessionScript.h"
◆ SessionScript()
| SessionScript::SessionScript |
( |
char const * |
name, |
|
|
std::vector< uint16 > |
enabledHooks = std::vector<uint16>() |
|
) |
| |
|
protected |
31{
32
33 if (enabledHooks.empty())
35 enabledHooks.emplace_back(i);
36
38}
std::uint16_t uint16
Definition Define.h:108
@ SESSIONHOOK_END
Definition SessionScript.h:27
Definition ScriptObject.h:42
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition ScriptMgr.h:795
References ScriptRegistry< TScript >::AddScript(), and SESSIONHOOK_END.
◆ OnSessionUpdate()
This hook is called once per world tick for every session, from the world thread, right before the session processes its logout and warden checks.
- Parameters
-
| session | Contains information about the WorldSession |
| diff | Contains information about the diff time |
Referenced by ScriptMgr::OnSessionUpdate().
The documentation for this class was generated from the following files: