Add loaded/isLoaded to server player

pull/58/head
Koncord 8 years ago
parent fe370fa995
commit fe10821528

@ -64,6 +64,7 @@ std::map<RakNet::RakNetGUID, Player*> *Players::GetPlayers()
Player::Player(RakNet::RakNetGUID id) : BasePlayer(id)
{
handshake = false;
loaded = false;
}
Player::~Player()
@ -91,6 +92,15 @@ bool Player::isHandshaked()
return handshake;
}
void Player::Loaded()
{
loaded = true;
}
bool Player::isLoaded()
{
return loaded;
}
Player *Players::GetPlayer(unsigned short id)
{

@ -46,12 +46,15 @@ public:
void SetID(unsigned short id);
bool isHandshaked();
void Handshake();
void Loaded();
bool isLoaded();
virtual ~Player();
private:
bool handshake;
bool loaded;
};
#endif //OPENMW_PLAYER_HPP

Loading…
Cancel
Save