Multiple login account support initial, needs a ton of work but can login and create account

This commit is contained in:
KimLS
2017-11-14 21:42:14 -08:00
parent da163be8db
commit 6b70faf141
18 changed files with 198 additions and 359 deletions
+2 -20
View File
@@ -49,9 +49,9 @@ LoginServerList::LoginServerList() {
LoginServerList::~LoginServerList() {
}
void LoginServerList::Add(const char* iAddress, uint16 iPort, const char* Account, const char* Password, bool Legacy)
void LoginServerList::Add(const char* Name, const char* iAddress, uint16 iPort, const char* Account, const char* Password, bool Legacy)
{
auto loginserver = new LoginServer(iAddress, iPort, Account, Password, Legacy);
auto loginserver = new LoginServer(Name, iAddress, iPort, Account, Password, Legacy);
m_list.push_back(std::unique_ptr<LoginServer>(loginserver));
}
@@ -63,14 +63,6 @@ bool LoginServerList::SendInfo() {
return true;
}
bool LoginServerList::SendNewInfo() {
for (auto &iter : m_list) {
(*iter).SendNewInfo();
}
return true;
}
bool LoginServerList::SendStatus() {
for (auto &iter : m_list) {
(*iter).SendStatus();
@@ -118,16 +110,6 @@ bool LoginServerList::AllConnected() {
return true;
}
bool LoginServerList::MiniLogin() {
for (auto &iter : m_list) {
if ((*iter).MiniLogin()) {
return true;
}
}
return false;
}
bool LoginServerList::CanUpdate() {
for (auto &iter : m_list) {
if ((*iter).CanUpdate()) {