summaryrefslogtreecommitdiffstats
path: root/src/game-server/accountconnection.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-09 02:35:25 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-09 02:36:30 +0200
commit6ae2001e91eaaeb8b72031e96f88820711bb1ca0 (patch)
tree8ab01e1d9e59860837560e6cd8bbd7eabaa428de /src/game-server/accountconnection.h
parent40a31c52aebc19221cc9da8a0f764d21e672937b (diff)
downloadmanaserv-6ae2001e91eaaeb8b72031e96f88820711bb1ca0.tar.gz
manaserv-6ae2001e91eaaeb8b72031e96f88820711bb1ca0.tar.xz
manaserv-6ae2001e91eaaeb8b72031e96f88820711bb1ca0.zip
Add persistent items support based on seeseekey's work.
Also made some random changes where useful, including: - Code formatting fixes, - Design fix about the fact that only the game config option should be checked. - Fixed the size of the values sent and receive to follow the rest of the development. - Fixed variables names to make them show what they are, and not why they are used. Resolves: Mana-Mantis #142.
Diffstat (limited to 'src/game-server/accountconnection.h')
-rw-r--r--src/game-server/accountconnection.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game-server/accountconnection.h b/src/game-server/accountconnection.h
index 4e76315..a144a1d 100644
--- a/src/game-server/accountconnection.h
+++ b/src/game-server/accountconnection.h
@@ -160,6 +160,21 @@ class AccountConnection : public Connection
void updateOnlineStatus(int charId, bool online);
/**
+ * Adds floor items info on database.
+ *
+ * This is used to make them potentially persistent between two server
+ * restart.
+ */
+ void createFloorItems(int mapId, int itemId, int amount,
+ int posX, int posY);
+
+ /**
+ * Remove floor items from the database
+ */
+ void removeFloorItems(int mapId, int itemId, int amount,
+ int posX, int posY);
+
+ /**
* Send transaction to account server
*/
void sendTransaction(int id, int action, const std::string &message);