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

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

	SendRequest(MyPacket::PKT_CS_LOGIN, loginRequest);

}
Esempio n. 2
0
File: Player.cpp Progetto: ozt88/GSP
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);
}