diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-08 17:20:34 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-08 17:55:13 +0200 |
commit | ccf23200e0331f7d3638f4de3d3f646bbaef6262 (patch) | |
tree | 5f2efcf960423247855a87cb1367b6b6a2261380 /src/game-server/character.cpp | |
parent | cd6063abe8cbad7b9a484e9261f19c8ef1791423 (diff) | |
download | manaserv-ccf23200e0331f7d3638f4de3d3f646bbaef6262.tar.gz manaserv-ccf23200e0331f7d3638f4de3d3f646bbaef6262.tar.bz2 manaserv-ccf23200e0331f7d3638f4de3d3f646bbaef6262.tar.xz manaserv-ccf23200e0331f7d3638f4de3d3f646bbaef6262.zip |
Added bind for setting login callback
Reviewed-by: bjorn.
Diffstat (limited to 'src/game-server/character.cpp')
-rw-r--r-- | src/game-server/character.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index bf7c1909..b0993afa 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) { @@ -822,3 +823,8 @@ void Character::clearSpecials() { mSpecials.clear(); } + +void Character::triggerLoginCallback() +{ + executeCallback(mLoginCallback, this); +} |