diff options
author | Andreas Habel <mail@exceptionfault.de> | 2008-09-15 10:43:11 +0000 |
---|---|---|
committer | Andreas Habel <mail@exceptionfault.de> | 2008-09-15 10:43:11 +0000 |
commit | a613c53609185c436dcdca7eae3221b792ad523d (patch) | |
tree | 8a367e8663fa96c955914f3179e80a80e4523be7 /src/account-server/dalstorage.hpp | |
parent | bfc0c10184442fba0b53e0aaafcf2532610e5cd7 (diff) | |
download | manaserv-a613c53609185c436dcdca7eae3221b792ad523d.tar.gz manaserv-a613c53609185c436dcdca7eae3221b792ad523d.tar.bz2 manaserv-a613c53609185c436dcdca7eae3221b792ad523d.tar.xz manaserv-a613c53609185c436dcdca7eae3221b792ad523d.zip |
* Added doxygen file, docu will be generated under docs/api/html
* Added table definition "tmw_world_states" to store map and world-specific variables
* Extended DALStorage to set and get those new variables
* Applied Kess's diff file from mantis #424 with modifications for PostgreSQL support
Diffstat (limited to 'src/account-server/dalstorage.hpp')
-rw-r--r-- | src/account-server/dalstorage.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/account-server/dalstorage.hpp b/src/account-server/dalstorage.hpp index 7a8208ff..099ec14a 100644 --- a/src/account-server/dalstorage.hpp +++ b/src/account-server/dalstorage.hpp @@ -223,6 +223,38 @@ class DALStorage */ void setQuestVar(int id, std::string const &, std::string const &); + /** + * Gets the string value of a world state variable. + * + * @param name Name of the requested world-state variable. + */ + std::string getWorldStateVar(std::string const &name); + + /** + * Gets the string value of a map specific world state variable. + * + * @param name Name of the requested world-state variable. + * @param map_id Id of the specific map. + */ + std::string getWorldStateVar(std::string const &name, int map_id); + + /** + * Sets the value of a world state variable. + * + * @param name Name of the world-state vairable. + * @param value New value of the world-state variable. + */ + void setWorldStateVar(std::string const &name, std::string const &value); + + /** + * Sets the value of a world state variable of a specific map. + * + * @param name Name of the world-state vairable. + * @param map_id ID of the specific map + * @param value New value of the world-state variable. + */ + void setWorldStateVar(std::string const &name, int map_id, + std::string const &value); private: /** |