summaryrefslogtreecommitdiff
path: root/src/account-server/account.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/account.h')
-rw-r--r--src/account-server/account.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/account-server/account.h b/src/account-server/account.h
index 2eb582c2..4f4b807e 100644
--- a/src/account-server/account.h
+++ b/src/account-server/account.h
@@ -147,14 +147,14 @@ class Account
*
* @param characters a list of characters.
*/
- void setCharacters(const Characters& characters);
+ void setCharacters(Characters characters);
/**
* Adds a new character.
*
* @param character the new character.
*/
- void addCharacter(CharacterData *character);
+ void addCharacter(std::unique_ptr<CharacterData> character);
/**
* Removes a character from the account.
@@ -180,6 +180,11 @@ class Account
{ return mCharacters; }
/**
+ * Get the character at the given slot.
+ */
+ const CharacterData *getCharacter(unsigned slot) const;
+
+ /**
* Get account ID.
*
* @return the unique ID of the account, a negative number if none yet.