More work on vote kick. Some network packets are exchanged, but still not functional.
This commit is contained in:
@@ -253,6 +253,17 @@ ClientThread::SendResetTimeout()
|
||||
m_outPacketList.push_back(reset);
|
||||
}
|
||||
|
||||
void
|
||||
ClientThread::SendAskKickPlayer(unsigned playerId)
|
||||
{
|
||||
boost::shared_ptr<NetPacket> ask(new NetPacketAskKickPlayer);
|
||||
NetPacketAskKickPlayer::Data askData;
|
||||
askData.playerId = playerId;
|
||||
static_cast<NetPacketAskKickPlayer *>(ask.get())->SetData(askData);
|
||||
boost::mutex::scoped_lock lock(m_outPacketListMutex);
|
||||
m_outPacketList.push_back(ask);
|
||||
}
|
||||
|
||||
GameInfo
|
||||
ClientThread::GetGameInfo(unsigned gameId) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user