summaryrefslogtreecommitdiff
path: root/src/storage.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-01-08 22:52:59 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-01-08 22:52:59 +0000
commitf7db7a051da79d8deef8b79419ce6772dce16725 (patch)
tree27ff5c5f33ea73d4e52e32ebbc583fa92ba50c87 /src/storage.h
parentac150f3543caf86fd071c73f53373b4ea243fa24 (diff)
downloadmanaserv-f7db7a051da79d8deef8b79419ce6772dce16725.tar.gz
manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.tar.bz2
manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.tar.xz
manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.zip
Added customization of created character. (That makes previously created db invalid.) Made list of map indexed by map id, instead of map name. This will prevent unsyncing of player's current map when changing a map name. Remember you have now to add a map filename into db before being able to load it. (Default map id is 1, not ZERO, as zero is the not found return value.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/storage.h b/src/storage.h
index 6a844320..682782bf 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -302,8 +302,15 @@ class Storage
* Tells if the character's name already exists
* @return true if character's name exists.
*/
- virtual
- bool doesCharacterNameExists(std::string name) = 0;
+ virtual bool
+ doesCharacterNameExists(std::string name) = 0;
+
+ /**
+ * Tells the map name from the map id
+ * @return the name of the map
+ */
+ virtual const std::string
+ getMapNameFromId(const unsigned int mapId) = 0;
/**
* Saves the changes permanently.