diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-03-10 23:31:32 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-03-11 10:16:35 +0100 |
commit | 520705579d6a68cf6908275026eef2edee0758af (patch) | |
tree | 2d37eb5e28a1f6d95bac4094a613f054c08c55b2 /src/game-server/state.h | |
parent | 78c912fb4007c3e5f0b43de02646772acb21ecf2 (diff) | |
download | manaserv-520705579d6a68cf6908275026eef2edee0758af.tar.gz manaserv-520705579d6a68cf6908275026eef2edee0758af.tar.bz2 manaserv-520705579d6a68cf6908275026eef2edee0758af.tar.xz manaserv-520705579d6a68cf6908275026eef2edee0758af.zip |
Added callbacks for map/worldvar changes
Reviewed-by: bjorn.
Diffstat (limited to 'src/game-server/state.h')
-rw-r--r-- | src/game-server/state.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game-server/state.h b/src/game-server/state.h index 479cc1d9..6fae5c89 100644 --- a/src/game-server/state.h +++ b/src/game-server/state.h @@ -121,6 +121,12 @@ namespace GameState */ void setVariableFromDbserver (const std::string &key, const std::string &value); + /** + * Informs all maps about the change of a variable so the maps can call + * callbacks for those. + */ + void callVariableCallbacks(const std::string &key, + const std::string &value); } #endif |