summaryrefslogtreecommitdiff
path: root/src/account-server/serverhandler.hpp
diff options
context:
space:
mode:
authorAndreas Habel <mail@exceptionfault.de>2008-11-30 12:08:57 +0100
committerAndreas Habel <mail@exceptionfault.de>2008-11-30 12:08:57 +0100
commit4abae69f1180ffe6a4dbd2db60dfa76b6ef41ebb (patch)
tree4b2e3eb8e5c35e65ec18996060a5daac9bff1938 /src/account-server/serverhandler.hpp
parent6d263b7550468306018934ad1dc9928b57b8f129 (diff)
downloadmanaserv-4abae69f1180ffe6a4dbd2db60dfa76b6ef41ebb.tar.gz
manaserv-4abae69f1180ffe6a4dbd2db60dfa76b6ef41ebb.tar.bz2
manaserv-4abae69f1180ffe6a4dbd2db60dfa76b6ef41ebb.tar.xz
manaserv-4abae69f1180ffe6a4dbd2db60dfa76b6ef41ebb.zip
Add sync Buffer according to mantis #550
The game server buffers all changes made to a character in a sync buffer. The buffer is sent to the account server if the buffer contains more then 20 message, reaches size of 1kb or at least every 10 seconds. ATM Character attributes, corr points and attribute points and skills are synchronized. TODO: items, location, money...
Diffstat (limited to 'src/account-server/serverhandler.hpp')
-rw-r--r--src/account-server/serverhandler.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/account-server/serverhandler.hpp b/src/account-server/serverhandler.hpp
index 0d75219c..646ebf4c 100644
--- a/src/account-server/serverhandler.hpp
+++ b/src/account-server/serverhandler.hpp
@@ -25,6 +25,8 @@
#include <iosfwd>
#include <string>
+#include "net/messagein.hpp"
+
class Character;
namespace GameServerHandler
@@ -64,6 +66,12 @@ namespace GameServerHandler
* Sends chat party information
*/
void sendPartyChange(Character *ptr, int partyId);
+
+ /**
+ * Takes a GAMSG_PLAYER_SYNC from the gameserver and stores all changes in
+ * the database.
+ */
+ void syncDatabase(MessageIn &msg);
}
#endif