diff options
Diffstat (limited to 'src/game-server/accountconnection.h')
-rw-r--r-- | src/game-server/accountconnection.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/game-server/accountconnection.h b/src/game-server/accountconnection.h index c0bbc5cd..37033389 100644 --- a/src/game-server/accountconnection.h +++ b/src/game-server/accountconnection.h @@ -25,6 +25,7 @@ #include "net/connection.h" class Character; +class MapComposite; /** \fn void AccountConnection::syncChanges(bool force = false) * @@ -75,14 +76,26 @@ class AccountConnection : public Connection void playerReconnectAccount(int id, const std::string &magic_token); /** - * Requests the value of a quest variable from the database. + * Requests the value of a character-bound variable from the database. */ - void requestQuestVar(Character *, const std::string &); + void requestCharacterVar(Character *, const std::string &); /** - * Pushes a new quest value to the database. + * Pushes a new character-bound value to the database. */ - void updateQuestVar(Character *, const std::string &name, + void updateCharacterVar(Character *, const std::string &name, + const std::string &value); + + /** + * Pushes a new value of a map variable to the account server. + */ + void updateMapVar(MapComposite *, const std::string &name, + const std::string &value); + + /** + * Pushes a new value of a world variable to the account server. + */ + void updateWorldVar(const std::string &name, const std::string &value); /** |