Adding country information of player (optional).

This commit is contained in:
lotodore
2010-04-01 16:20:57 +00:00
parent 2c8f8d4869
commit 2dc3ab64ec
6 changed files with 62 additions and 10 deletions
+14
View File
@@ -65,6 +65,20 @@ PlayerData::SetPassword(const string &password)
m_password = password;
}
std::string
PlayerData::GetCountry() const
{
boost::mutex::scoped_lock lock(m_dataMutex);
return m_country;
}
void
PlayerData::SetCountry(const std::string &country)
{
boost::mutex::scoped_lock lock(m_dataMutex);
m_country = country;
}
string
PlayerData::GetAvatarFile() const
{