summaryrefslogtreecommitdiff
path: root/src/account-server/character.h
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-08-18 19:34:41 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:47 +0200
commitb379c150cedfbae4775c8358369ec590ad4033f4 (patch)
tree02c0abc19113d119e16ef304f7d6022f74fbf21e /src/account-server/character.h
parent8f4acdeaf7dbb6a2cf8b10198d92b4f9894f1ef6 (diff)
downloadmanaserv-b379c150cedfbae4775c8358369ec590ad4033f4.tar.gz
manaserv-b379c150cedfbae4775c8358369ec590ad4033f4.tar.bz2
manaserv-b379c150cedfbae4775c8358369ec590ad4033f4.tar.xz
manaserv-b379c150cedfbae4775c8358369ec590ad4033f4.zip
Unshared the serialization of characters
This getting annoying while trying to do multiple changes. Types/structures had to be shared all the time making it nessecary to find ugly workarounds.
Diffstat (limited to 'src/account-server/character.h')
-rw-r--r--src/account-server/character.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/account-server/character.h b/src/account-server/character.h
index ff29ffe5..f61b8380 100644
--- a/src/account-server/character.h
+++ b/src/account-server/character.h
@@ -72,9 +72,11 @@ typedef std::map<unsigned, AttributeValue> AttributeMap;
class CharacterData
{
public:
-
CharacterData(const std::string &name, int id = -1);
+ void serialize(MessageOut &msg);
+ void deserialize(MessageIn &msg);
+
/**
* Gets the database id of the character.
*/