void DummyClientSession::Login()
{
	//TODO: 이 부분 테스트에 용이하게 고칠 것
	static int id = 121;

	MyPacket::LoginRequest loginRequest;
	loginRequest.set_playerid(id++);

	SendRequest(MyPacket::PKT_CS_LOGIN, loginRequest);

}
Exemple #2
0
void Player::RequestLogin()
{
	static int id = 300;
	if(mPlayerId == -1)
	{
		mPlayerId = id++;
	}
	mPlayerName = "USA" + std::to_string(mPlayerId);
	MyPacket::LoginRequest loginRequest;
	loginRequest.set_playerid(mPlayerId);

	mSession->SendRequest(MyPacket::PKT_CS_LOGIN, loginRequest);
}