diff options
Diffstat (limited to 'src/net/logindata.h')
-rw-r--r-- | src/net/logindata.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/net/logindata.h b/src/net/logindata.h index 9bbeed4f..b842bdfd 100644 --- a/src/net/logindata.h +++ b/src/net/logindata.h @@ -1,7 +1,7 @@ /* * The Mana Client * Copyright (C) 2004-2009 The Mana World Development Team - * Copyright (C) 2009-2010 The Mana Developers + * Copyright (C) 2009-2011 The Mana Developers * * This file is part of The Mana Client. * @@ -22,17 +22,21 @@ #ifndef LOGINDATA_H #define LOGINDATA_H -#include "player.h" - -#include "net/serverinfo.h" +#include "being.h" #include <string> class LoginData { public: + LoginData() + { + characterSlots = 3; + } + std::string username; std::string password; + std::string randomSeed; std::string newPassword; std::string updateHost; @@ -44,15 +48,27 @@ public: bool remember; /**< Whether to store the username. */ bool registerLogin; /**< Whether an account is being registered. */ + unsigned short characterSlots; /**< The number of character slots */ + + /** + * Initialize character slots to 3 for backwards compatibility + */ + void resetCharacterSlots() + { + characterSlots = 3; + } + void clear() { username.clear(); password.clear(); + randomSeed.clear(); newPassword.clear(); updateHost.clear(); email.clear(); captchaResponse.clear(); gender = GENDER_UNSPECIFIED; + resetCharacterSlots(); } }; |