diff options
Diffstat (limited to 'src/game/ScriptCalls.h')
| -rw-r--r-- | src/game/ScriptCalls.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/ScriptCalls.h b/src/game/ScriptCalls.h index 0eae69cb505..bb6ecee3b89 100644 --- a/src/game/ScriptCalls.h +++ b/src/game/ScriptCalls.h @@ -37,6 +37,11 @@ class InstanceData; bool LoadScriptingModule(char const* libName = ""); void UnloadScriptingModule(); +//On Event Handlers +typedef void(TRINITY_IMPORT * scriptCallOnLogin) (Player *pPlayer); +typedef void(TRINITY_IMPORT * scriptCallOnLogout) (Player *pPlayer); +typedef void(TRINITY_IMPORT * scriptCallOnPVPKill) (Player *killer, Player *killed); + typedef void(TRINITY_IMPORT * scriptCallScriptsInit) (char const*); typedef void(TRINITY_IMPORT * scriptCallScriptsFree) (); typedef char const* (TRINITY_IMPORT * scriptCallScriptsVersion) (); @@ -72,6 +77,10 @@ typedef struct scriptCallScriptsFree ScriptsFree; scriptCallScriptsVersion ScriptsVersion; + scriptCallOnLogin OnLogin; + scriptCallOnLogout OnLogout; + scriptCallOnPVPKill OnPVPKill; + scriptCallGossipHello GossipHello; scriptCallGOChooseReward GOChooseReward; scriptCallQuestAccept QuestAccept; |
