summaryrefslogtreecommitdiff
path: root/src/game-server/character.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/character.cpp')
-rw-r--r--src/game-server/character.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 4816f3c1..71427342 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -55,6 +55,7 @@ const float Character::EXP_LEVEL_FLEXIBILITY = 1.0f;
Script::Ref Character::mDeathCallback;
Script::Ref Character::mDeathAcceptedCallback;
+Script::Ref Character::mLoginCallback;
static bool executeCallback(Script::Ref function, Character *character)
{
@@ -830,3 +831,8 @@ void Character::clearSpecials()
{
mSpecials.clear();
}
+
+void Character::triggerLoginCallback()
+{
+ executeCallback(mLoginCallback, this);
+}