Next steps for invitation system.

This commit is contained in:
lotodore
2010-03-30 13:02:43 +00:00
parent 0925b2d747
commit a01741846a
5 changed files with 38 additions and 5 deletions
+16
View File
@@ -1486,6 +1486,22 @@ ClientStateWaitGame::InternalHandlePacket(boost::shared_ptr<ClientThread> client
client->AddPlayerData(playerData);
}
}
else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_inviteNotifyMessage)
{
InviteNotifyMessage_t *netInvNotify = &tmpPacket->GetMsg()->choice.inviteNotifyMessage;
client->GetCallback()->SignalPlayerGameInvitation(
netInvNotify->gameId,
netInvNotify->playerIdWho,
netInvNotify->playerIdByWhom);
}
else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_rejectInvNotifyMessage)
{
RejectInvNotifyMessage_t *netRejNotify = &tmpPacket->GetMsg()->choice.rejectInvNotifyMessage;
client->GetCallback()->SignalPlayerGameInvitation(
netRejNotify->gameId,
netRejNotify->playerId,
static_cast<DenyGameInvitationReason>(netRejNotify->playerRejectReason));
}
}
//-----------------------------------------------------------------------------