Some work on protocol buffer details.

This commit is contained in:
lotodore
2012-09-23 23:19:53 +02:00
parent e16d4908bd
commit f0ee0af6ec
13 changed files with 1103 additions and 1096 deletions
+27 -27
View File
@@ -22,46 +22,46 @@ option java_outer_classname = "ProtoBuf";
// Enumerations used by several messages. // Enumerations used by several messages.
enum NetGameMode { enum NetGameMode {
gameCreated = 1; netGameCreated = 1;
gameStarted = 2; netGameStarted = 2;
gameClosed = 3; netGameClosed = 3;
} }
enum NetGameState { enum NetGameState {
statePreflop = 0; netStatePreflop = 0;
stateFlop = 1; netStateFlop = 1;
stateTurn = 2; netStateTurn = 2;
stateRiver = 3; netStateRiver = 3;
statePreflopSmallBlind = 4; netStatePreflopSmallBlind = 4;
statePreflopBigBlind = 5; netStatePreflopBigBlind = 5;
} }
enum NetPlayerAction { enum NetPlayerAction {
actionNone = 0; netActionNone = 0;
actionFold = 1; netActionFold = 1;
actionCheck = 2; netActionCheck = 2;
actionCall = 3; netActionCall = 3;
actionBet = 4; netActionBet = 4;
actionRaise = 5; netActionRaise = 5;
actionAllIn = 6; netActionAllIn = 6;
} }
enum NetPlayerState { enum NetPlayerState {
playerStateNormal = 0; netPlayerStateNormal = 0;
playerStateSessionInactive = 1; netPlayerStateSessionInactive = 1;
playerStateNoMoney = 2; netPlayerStateNoMoney = 2;
} }
enum PlayerInfoRights { enum NetPlayerInfoRights {
playerRightsGuest = 1; netPlayerRightsGuest = 1;
playerRightsNormal = 2; netPlayerRightsNormal = 2;
playerRightsAdmin = 3; netPlayerRightsAdmin = 3;
} }
enum NetAvatarType { enum NetAvatarType {
avatarImagePng = 1; netAvatarImagePng = 1;
avatarImageJpg = 2; netAvatarImageJpg = 2;
avatarImageGif = 3; netAvatarImageGif = 3;
} }
// Message part containing game information. // Message part containing game information.
@@ -240,7 +240,7 @@ message PlayerInfoReplyMessage {
message PlayerInfoData { message PlayerInfoData {
required string playerName = 1; required string playerName = 1;
required bool isHuman = 2; required bool isHuman = 2;
required PlayerInfoRights playerRights = 3; required NetPlayerInfoRights playerRights = 3;
optional string countryCode = 4; optional string countryCode = 4;
message AvatarData { message AvatarData {
required NetAvatarType avatarType = 1; required NetAvatarType avatarType = 1;
+7 -7
View File
@@ -535,7 +535,7 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr<ClientThread> clien
const PlayerInfoReplyMessage::PlayerInfoData &netInfo = infoReply.playerinfodata(); const PlayerInfoReplyMessage::PlayerInfoData &netInfo = infoReply.playerinfodata();
tmpInfo.playerName = netInfo.playername(); tmpInfo.playerName = netInfo.playername();
tmpInfo.ptype = netInfo.ishuman() ? PLAYER_TYPE_HUMAN : PLAYER_TYPE_COMPUTER; tmpInfo.ptype = netInfo.ishuman() ? PLAYER_TYPE_HUMAN : PLAYER_TYPE_COMPUTER;
tmpInfo.isGuest = netInfo.playerrights() == playerRightsGuest; tmpInfo.isGuest = netInfo.playerrights() == netPlayerRightsGuest;
if (netInfo.has_countrycode()) { if (netInfo.has_countrycode()) {
tmpInfo.countryCode = netInfo.countrycode(); tmpInfo.countryCode = netInfo.countrycode();
} }
@@ -696,7 +696,7 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr<ClientThread> clien
} else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameListUpdateMessage) { } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameListUpdateMessage) {
// An existing game was updated on the server. // An existing game was updated on the server.
const GameListUpdateMessage &netListUpdate = tmpPacket->GetMsg()->gamelistupdatemessage(); const GameListUpdateMessage &netListUpdate = tmpPacket->GetMsg()->gamelistupdatemessage();
if (netListUpdate.gamemode() == gameClosed) if (netListUpdate.gamemode() == netGameClosed)
client->RemoveGameInfo(netListUpdate.gameid()); client->RemoveGameInfo(netListUpdate.gameid());
else else
client->UpdateGameInfoMode(netListUpdate.gameid(), static_cast<GameMode>(netListUpdate.gamemode())); client->UpdateGameInfoMode(netListUpdate.gameid(), static_cast<GameMode>(netListUpdate.gamemode()));
@@ -1532,13 +1532,13 @@ ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client
if (!tmpPlayer) if (!tmpPlayer)
throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0);
switch (seatState) { switch (seatState) {
case playerStateNormal : case netPlayerStateNormal :
tmpPlayer->setIsSessionActive(true); tmpPlayer->setIsSessionActive(true);
break; break;
case playerStateSessionInactive : case netPlayerStateSessionInactive :
tmpPlayer->setIsSessionActive(false); tmpPlayer->setIsSessionActive(false);
break; break;
case playerStateNoMoney : case netPlayerStateNoMoney :
tmpPlayer->setMyCash(0); tmpPlayer->setMyCash(0);
break; break;
} }
@@ -1662,10 +1662,10 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
bool isBigBlind = false; bool isBigBlind = false;
if (netActionDone.gamestate() == statePreflopSmallBlind) { if (netActionDone.gamestate() == netStatePreflopSmallBlind) {
curGame->getCurrentHand()->getCurrentBeRo()->setSmallBlindPositionId(tmpPlayer->getMyUniqueID()); curGame->getCurrentHand()->getCurrentBeRo()->setSmallBlindPositionId(tmpPlayer->getMyUniqueID());
tmpPlayer->setMyButton(BUTTON_SMALL_BLIND); tmpPlayer->setMyButton(BUTTON_SMALL_BLIND);
} else if (netActionDone.gamestate() == statePreflopBigBlind) { } else if (netActionDone.gamestate() == netStatePreflopBigBlind) {
curGame->getCurrentHand()->getCurrentBeRo()->setBigBlindPositionId(tmpPlayer->getMyUniqueID()); curGame->getCurrentHand()->getCurrentBeRo()->setBigBlindPositionId(tmpPlayer->getMyUniqueID());
tmpPlayer->setMyButton(BUTTON_BIG_BLIND); tmpPlayer->setMyButton(BUTTON_BIG_BLIND);
isBigBlind = true; isBigBlind = true;
+3 -2
View File
@@ -84,9 +84,10 @@ void
SenderHelper::InternalStorePacket(SendBuffer &tmpBuffer, boost::shared_ptr<NetPacket> packet) SenderHelper::InternalStorePacket(SendBuffer &tmpBuffer, boost::shared_ptr<NetPacket> packet)
{ {
uint32_t packetSize = packet->GetMsg()->ByteSize(); uint32_t packetSize = packet->GetMsg()->ByteSize();
char *buf = new char[packetSize + NET_HEADER_SIZE]; google::protobuf::uint8 *buf = new google::protobuf::uint8[packetSize + NET_HEADER_SIZE];
*((uint32_t *)buf) = htonl(packetSize); *((uint32_t *)buf) = htonl(packetSize);
packet->GetMsg()->SerializeToArray(&buf[NET_HEADER_SIZE], packetSize); packet->GetMsg()->SerializeWithCachedSizesToArray(&buf[NET_HEADER_SIZE]);
SendBuffer::EncodeToBuf(buf, packetSize + NET_HEADER_SIZE, &tmpBuffer); SendBuffer::EncodeToBuf(buf, packetSize + NET_HEADER_SIZE, &tmpBuffer);
delete[] buf;
} }
+8 -8
View File
@@ -1176,11 +1176,11 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr<ServerGame> server)
while (player_i != player_end && playerCounter < server->GetStartData().numberOfPlayers) { while (player_i != player_end && playerCounter < server->GetStartData().numberOfPlayers) {
NetPlayerState seatState; NetPlayerState seatState;
if (!(*player_i)->getMyActiveStatus()) { if (!(*player_i)->getMyActiveStatus()) {
seatState = playerStateNoMoney; seatState = netPlayerStateNoMoney;
} else if (!(*player_i)->isSessionActive()) { } else if (!(*player_i)->isSessionActive()) {
seatState = playerStateSessionInactive; seatState = netPlayerStateSessionInactive;
} else { } else {
seatState = playerStateNormal; seatState = netPlayerStateNormal;
} }
netHandStart->add_seatstates(seatState); netHandStart->add_seatstates(seatState);
++player_i; ++player_i;
@@ -1209,7 +1209,7 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr<ServerGame> server)
notifySmallBlind->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage); notifySmallBlind->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage);
PlayersActionDoneMessage *netSmallBlind = notifySmallBlind->GetMsg()->mutable_playersactiondonemessage(); PlayersActionDoneMessage *netSmallBlind = notifySmallBlind->GetMsg()->mutable_playersactiondonemessage();
netSmallBlind->set_gameid(server->GetId()); netSmallBlind->set_gameid(server->GetId());
netSmallBlind->set_gamestate(statePreflopSmallBlind); netSmallBlind->set_gamestate(netStatePreflopSmallBlind);
netSmallBlind->set_playerid(tmpPlayer->getMyUniqueID()); netSmallBlind->set_playerid(tmpPlayer->getMyUniqueID());
netSmallBlind->set_playeraction(static_cast<NetPlayerAction>(tmpPlayer->getMyAction())); netSmallBlind->set_playeraction(static_cast<NetPlayerAction>(tmpPlayer->getMyAction()));
netSmallBlind->set_totalplayerbet(tmpPlayer->getMySet()); netSmallBlind->set_totalplayerbet(tmpPlayer->getMySet());
@@ -1231,7 +1231,7 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr<ServerGame> server)
notifyBigBlind->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage); notifyBigBlind->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage);
PlayersActionDoneMessage *netBigBlind = notifyBigBlind->GetMsg()->mutable_playersactiondonemessage(); PlayersActionDoneMessage *netBigBlind = notifyBigBlind->GetMsg()->mutable_playersactiondonemessage();
netBigBlind->set_gameid(server->GetId()); netBigBlind->set_gameid(server->GetId());
netBigBlind->set_gamestate(statePreflopBigBlind); netBigBlind->set_gamestate(netStatePreflopBigBlind);
netBigBlind->set_playerid(tmpPlayer->getMyUniqueID()); netBigBlind->set_playerid(tmpPlayer->getMyUniqueID());
netBigBlind->set_playeraction(static_cast<NetPlayerAction>(tmpPlayer->getMyAction())); netBigBlind->set_playeraction(static_cast<NetPlayerAction>(tmpPlayer->getMyAction()));
netBigBlind->set_totalplayerbet(tmpPlayer->getMySet()); netBigBlind->set_totalplayerbet(tmpPlayer->getMySet());
@@ -1431,13 +1431,13 @@ ServerGameStateWaitPlayerAction::InternalProcessPacket(boost::shared_ptr<ServerG
} }
// If the client omitted some values, fill them in. // If the client omitted some values, fill them in.
if (netMyAction->myaction() == actionCall && netMyAction->myrelativebet() == 0) { if (netMyAction->myaction() == netActionCall && netMyAction->myrelativebet() == 0) {
if (curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() >= tmpPlayer->getMySet() + tmpPlayer->getMyCash()) if (curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() >= tmpPlayer->getMySet() + tmpPlayer->getMyCash())
netMyAction->set_myaction(actionAllIn); netMyAction->set_myaction(netActionAllIn);
else else
netMyAction->set_myrelativebet(curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() - tmpPlayer->getMySet()); netMyAction->set_myrelativebet(curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() - tmpPlayer->getMySet());
} }
if (netMyAction->myaction() == actionAllIn && netMyAction->myrelativebet() == 0) if (netMyAction->myaction() == netActionAllIn && netMyAction->myrelativebet() == 0)
netMyAction->set_myrelativebet(tmpPlayer->getMyCash()); netMyAction->set_myrelativebet(tmpPlayer->getMyCash());
// Check whether the action is valid. // Check whether the action is valid.
+2 -2
View File
@@ -1172,7 +1172,7 @@ ServerLobbyThread::HandleNetPacketRetrievePlayerInfo(boost::shared_ptr<SessionDa
data->set_playername(tmpPlayer->GetName()); data->set_playername(tmpPlayer->GetName());
data->set_ishuman(tmpPlayer->GetType() == PLAYER_TYPE_HUMAN); data->set_ishuman(tmpPlayer->GetType() == PLAYER_TYPE_HUMAN);
data->set_playerrights(static_cast<PlayerInfoRights>(tmpPlayer->GetRights())); data->set_playerrights(static_cast<NetPlayerInfoRights>(tmpPlayer->GetRights()));
if (!tmpPlayer->GetCountry().empty()) { if (!tmpPlayer->GetCountry().empty()) {
data->set_countrycode(tmpPlayer->GetCountry()); data->set_countrycode(tmpPlayer->GetCountry());
} }
@@ -2119,7 +2119,7 @@ ServerLobbyThread::CreateNetPacketGameListNew(const ServerGame &game)
GameListNewMessage *netGameList = packet->GetMsg()->mutable_gamelistnewmessage(); GameListNewMessage *netGameList = packet->GetMsg()->mutable_gamelistnewmessage();
netGameList->set_gameid(game.GetId()); netGameList->set_gameid(game.GetId());
netGameList->set_adminplayerid(game.GetAdminPlayerId()); netGameList->set_adminplayerid(game.GetAdminPlayerId());
netGameList->set_gamemode(game.IsRunning() ? gameStarted : gameCreated); netGameList->set_gamemode(game.IsRunning() ? netGameStarted : netGameCreated);
NetPacket::SetGameData(game.GetGameData(), *netGameList->mutable_gameinfo()); NetPacket::SetGameData(game.GetGameData(), *netGameList->mutable_gameinfo());
netGameList->mutable_gameinfo()->set_gamename(game.GetName()); netGameList->mutable_gameinfo()->set_gamename(game.GetName());
netGameList->set_isprivate(game.IsPasswordProtected()); netGameList->set_isprivate(game.IsPasswordProtected());
+387 -384
View File
@@ -291,7 +291,7 @@ const ::google::protobuf::EnumDescriptor* NetGameMode_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* NetGameState_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* NetGameState_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* NetPlayerAction_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* NetPlayerAction_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* NetPlayerState_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* NetPlayerState_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* PlayerInfoRights_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* NetPlayerInfoRights_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor_ = NULL;
} // namespace } // namespace
@@ -1796,7 +1796,7 @@ void protobuf_AssignDesc_pokerth_2eproto() {
NetGameState_descriptor_ = file->enum_type(1); NetGameState_descriptor_ = file->enum_type(1);
NetPlayerAction_descriptor_ = file->enum_type(2); NetPlayerAction_descriptor_ = file->enum_type(2);
NetPlayerState_descriptor_ = file->enum_type(3); NetPlayerState_descriptor_ = file->enum_type(3);
PlayerInfoRights_descriptor_ = file->enum_type(4); NetPlayerInfoRights_descriptor_ = file->enum_type(4);
NetAvatarType_descriptor_ = file->enum_type(5); NetAvatarType_descriptor_ = file->enum_type(5);
} }
@@ -2225,381 +2225,384 @@ void protobuf_AddDesc_pokerth_2eproto() {
"meId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\"G\n\033GameList" "meId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\"G\n\033GameList"
"AdminChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020n" "AdminChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020n"
"ewAdminPlayerId\030\002 \002(\r\",\n\030PlayerInfoReque" "ewAdminPlayerId\030\002 \002(\r\",\n\030PlayerInfoReque"
"stMessage\022\020\n\010playerId\030\001 \002(\r\"\355\002\n\026PlayerIn" "stMessage\022\020\n\010playerId\030\001 \002(\r\"\360\002\n\026PlayerIn"
"foReplyMessage\022\020\n\010playerId\030\001 \002(\r\022>\n\016play" "foReplyMessage\022\020\n\010playerId\030\001 \002(\r\022>\n\016play"
"erInfoData\030\002 \001(\0132&.PlayerInfoReplyMessag" "erInfoData\030\002 \001(\0132&.PlayerInfoReplyMessag"
"e.PlayerInfoData\032\200\002\n\016PlayerInfoData\022\022\n\np" "e.PlayerInfoData\032\203\002\n\016PlayerInfoData\022\022\n\np"
"layerName\030\001 \002(\t\022\017\n\007isHuman\030\002 \002(\010\022\'\n\014play" "layerName\030\001 \002(\t\022\017\n\007isHuman\030\002 \002(\010\022*\n\014play"
"erRights\030\003 \002(\0162\021.PlayerInfoRights\022\023\n\013cou" "erRights\030\003 \002(\0162\024.NetPlayerInfoRights\022\023\n\013"
"ntryCode\030\004 \001(\t\022E\n\navatarData\030\005 \001(\01321.Pla" "countryCode\030\004 \001(\t\022E\n\navatarData\030\005 \001(\01321."
"yerInfoReplyMessage.PlayerInfoData.Avata" "PlayerInfoReplyMessage.PlayerInfoData.Av"
"rData\032D\n\nAvatarData\022\"\n\navatarType\030\001 \002(\0162" "atarData\032D\n\nAvatarData\022\"\n\navatarType\030\001 \002"
"\016.NetAvatarType\022\022\n\navatarHash\030\002 \002(\014\"\260\001\n\032" "(\0162\016.NetAvatarType\022\022\n\navatarHash\030\002 \002(\014\"\260"
"SubscriptionRequestMessage\022J\n\022subscripti" "\001\n\032SubscriptionRequestMessage\022J\n\022subscri"
"onAction\030\001 \002(\0162..SubscriptionRequestMess" "ptionAction\030\001 \002(\0162..SubscriptionRequestM"
"age.SubscriptionAction\"F\n\022SubscriptionAc" "essage.SubscriptionAction\"F\n\022Subscriptio"
"tion\022\027\n\023unsubscribeGameList\020\001\022\027\n\023resubsc" "nAction\022\027\n\023unsubscribeGameList\020\001\022\027\n\023resu"
"ribeGameList\020\002\"N\n\027JoinExistingGameMessag" "bscribeGameList\020\002\"N\n\027JoinExistingGameMes"
"e\022\016\n\006gameId\030\001 \002(\r\022\020\n\010password\030\002 \001(\t\022\021\n\ta" "sage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010password\030\002 \001(\t\022\021"
"utoLeave\030\003 \001(\010\"Y\n\022JoinNewGameMessage\022\036\n\010" "\n\tautoLeave\030\003 \001(\010\"Y\n\022JoinNewGameMessage\022"
"gameInfo\030\001 \002(\0132\014.NetGameInfo\022\020\n\010password" "\036\n\010gameInfo\030\001 \002(\0132\014.NetGameInfo\022\020\n\010passw"
"\030\002 \001(\t\022\021\n\tautoLeave\030\003 \001(\010\">\n\031RejoinExist" "ord\030\002 \001(\t\022\021\n\tautoLeave\030\003 \001(\010\">\n\031RejoinEx"
"ingGameMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n\tautoLe" "istingGameMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n\taut"
"ave\030\002 \001(\010\"]\n\022JoinGameAckMessage\022\016\n\006gameI" "oLeave\030\002 \001(\010\"]\n\022JoinGameAckMessage\022\016\n\006ga"
"d\030\001 \002(\r\022\027\n\017areYouGameAdmin\030\002 \002(\010\022\036\n\010game" "meId\030\001 \002(\r\022\027\n\017areYouGameAdmin\030\002 \002(\010\022\036\n\010g"
"Info\030\003 \002(\0132\014.NetGameInfo\"\337\002\n\025JoinGameFai" "ameInfo\030\003 \002(\0132\014.NetGameInfo\"\337\002\n\025JoinGame"
"ledMessage\022\016\n\006gameId\030\001 \002(\r\022K\n\025joinGameFa" "FailedMessage\022\016\n\006gameId\030\001 \002(\r\022K\n\025joinGam"
"ilureReason\030\002 \002(\0162,.JoinGameFailedMessag" "eFailureReason\030\002 \002(\0162,.JoinGameFailedMes"
"e.JoinGameFailureReason\"\350\001\n\025JoinGameFail" "sage.JoinGameFailureReason\"\350\001\n\025JoinGameF"
"ureReason\022\017\n\013invalidGame\020\001\022\016\n\ngameIsFull" "ailureReason\022\017\n\013invalidGame\020\001\022\016\n\ngameIsF"
"\020\002\022\021\n\rgameIsRunning\020\003\022\023\n\017invalidPassword" "ull\020\002\022\021\n\rgameIsRunning\020\003\022\023\n\017invalidPassw"
"\020\004\022\025\n\021notAllowedAsGuest\020\005\022\016\n\nnotInvited\020" "ord\020\004\022\025\n\021notAllowedAsGuest\020\005\022\016\n\nnotInvit"
"\006\022\021\n\rgameNameInUse\020\007\022\017\n\013badGameName\020\010\022\023\n" "ed\020\006\022\021\n\rgameNameInUse\020\007\022\017\n\013badGameName\020\010"
"\017invalidSettings\020\t\022\024\n\020ipAddressBlocked\020\n" "\022\023\n\017invalidSettings\020\t\022\024\n\020ipAddressBlocke"
"\022\020\n\014rejoinFailed\020\013\"P\n\027GamePlayerJoinedMe" "d\020\n\022\020\n\014rejoinFailed\020\013\"P\n\027GamePlayerJoine"
"ssage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022" "dMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002"
"\023\n\013isGameAdmin\030\003 \002(\010\"\316\001\n\025GamePlayerLeftM" "(\r\022\023\n\013isGameAdmin\030\003 \002(\010\"\316\001\n\025GamePlayerLe"
"essage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r" "ftMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 "
"\022I\n\024gamePlayerLeftReason\030\003 \002(\0162+.GamePla" "\002(\r\022I\n\024gamePlayerLeftReason\030\003 \002(\0162+.Game"
"yerLeftMessage.GamePlayerLeftReason\"H\n\024G" "PlayerLeftMessage.GamePlayerLeftReason\"H"
"amePlayerLeftReason\022\021\n\rleftOnRequest\020\000\022\016" "\n\024GamePlayerLeftReason\022\021\n\rleftOnRequest\020"
"\n\nleftKicked\020\001\022\r\n\tleftError\020\002\"C\n\027GameAdm" "\000\022\016\n\nleftKicked\020\001\022\r\n\tleftError\020\002\"C\n\027Game"
"inChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020newA" "AdminChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020n"
"dminPlayerId\030\002 \002(\r\"\206\002\n\026RemovedFromGameMe" "ewAdminPlayerId\030\002 \002(\r\"\206\002\n\026RemovedFromGam"
"ssage\022\016\n\006gameId\030\001 \002(\r\022L\n\025removedFromGame" "eMessage\022\016\n\006gameId\030\001 \002(\r\022L\n\025removedFromG"
"Reason\030\002 \002(\0162-.RemovedFromGameMessage.Re" "ameReason\030\002 \002(\0162-.RemovedFromGameMessage"
"movedFromGameReason\"\215\001\n\025RemovedFromGameR" ".RemovedFromGameReason\"\215\001\n\025RemovedFromGa"
"eason\022\024\n\020removedOnRequest\020\000\022\022\n\016kickedFro" "meReason\022\024\n\020removedOnRequest\020\000\022\022\n\016kicked"
"mGame\020\001\022\016\n\ngameIsFull\020\002\022\021\n\rgameIsRunning" "FromGame\020\001\022\016\n\ngameIsFull\020\002\022\021\n\rgameIsRunn"
"\020\003\022\017\n\013gameTimeout\020\004\022\026\n\022removedStartFaile" "ing\020\003\022\017\n\013gameTimeout\020\004\022\026\n\022removedStartFa"
"d\020\005\"<\n\030KickPlayerRequestMessage\022\016\n\006gameI" "iled\020\005\"<\n\030KickPlayerRequestMessage\022\016\n\006ga"
"d\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\")\n\027LeaveGameRe" "meId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\")\n\027LeaveGam"
"questMessage\022\016\n\006gameId\030\001 \002(\r\"=\n\031InvitePl" "eRequestMessage\022\016\n\006gameId\030\001 \002(\r\"=\n\031Invit"
"ayerToGameMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pla" "ePlayerToGameMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010"
"yerId\030\002 \002(\r\"R\n\023InviteNotifyMessage\022\016\n\006ga" "playerId\030\002 \002(\r\"R\n\023InviteNotifyMessage\022\016\n"
"meId\030\001 \002(\r\022\023\n\013playerIdWho\030\002 \002(\r\022\026\n\016playe" "\006gameId\030\001 \002(\r\022\023\n\013playerIdWho\030\002 \002(\r\022\026\n\016pl"
"rIdByWhom\030\003 \002(\r\"\270\001\n\033RejectGameInvitation" "ayerIdByWhom\030\003 \002(\r\"\270\001\n\033RejectGameInvitat"
"Message\022\016\n\006gameId\030\001 \002(\r\022H\n\016myRejectReaso" "ionMessage\022\016\n\006gameId\030\001 \002(\r\022H\n\016myRejectRe"
"n\030\002 \002(\01620.RejectGameInvitationMessage.Re" "ason\030\002 \002(\01620.RejectGameInvitationMessage"
"jectGameInvReason\"\?\n\023RejectGameInvReason" ".RejectGameInvReason\"\?\n\023RejectGameInvRea"
"\022\022\n\016rejectReasonNo\020\000\022\024\n\020rejectReasonBusy" "son\022\022\n\016rejectReasonNo\020\000\022\024\n\020rejectReasonB"
"\020\001\"\210\001\n\026RejectInvNotifyMessage\022\016\n\006gameId\030" "usy\020\001\"\210\001\n\026RejectInvNotifyMessage\022\016\n\006game"
"\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022L\n\022playerRejectR" "Id\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022L\n\022playerReje"
"eason\030\003 \002(\01620.RejectGameInvitationMessag" "ctReason\030\003 \002(\01620.RejectGameInvitationMes"
"e.RejectGameInvReason\"\262\001\n\021StartEventMess" "sage.RejectGameInvReason\"\262\001\n\021StartEventM"
"age\022\016\n\006gameId\030\001 \002(\r\0229\n\016startEventType\030\002 " "essage\022\016\n\006gameId\030\001 \002(\r\0229\n\016startEventType"
"\002(\0162!.StartEventMessage.StartEventType\022\037" "\030\002 \002(\0162!.StartEventMessage.StartEventTyp"
"\n\027fillWithComputerPlayers\030\003 \001(\010\"1\n\016Start" "e\022\037\n\027fillWithComputerPlayers\030\003 \001(\010\"1\n\016St"
"EventType\022\016\n\nstartEvent\020\000\022\017\n\013rejoinEvent" "artEventType\022\016\n\nstartEvent\020\000\022\017\n\013rejoinEv"
"\020\001\"&\n\024StartEventAckMessage\022\016\n\006gameId\030\001 \002" "ent\020\001\"&\n\024StartEventAckMessage\022\016\n\006gameId\030"
"(\r\"_\n\027GameStartInitialMessage\022\016\n\006gameId\030" "\001 \002(\r\"_\n\027GameStartInitialMessage\022\016\n\006game"
"\001 \002(\r\022\033\n\023startDealerPlayerId\030\002 \002(\r\022\027\n\013pl" "Id\030\001 \002(\r\022\033\n\023startDealerPlayerId\030\002 \002(\r\022\027\n"
"ayerSeats\030\003 \003(\rB\002\020\001\"\325\001\n\026GameStartRejoinM" "\013playerSeats\030\003 \003(\rB\002\020\001\"\325\001\n\026GameStartRejo"
"essage\022\016\n\006gameId\030\001 \002(\r\022\033\n\023startDealerPla" "inMessage\022\016\n\006gameId\030\001 \002(\r\022\033\n\023startDealer"
"yerId\030\002 \002(\r\022\017\n\007handNum\030\003 \002(\r\022B\n\020rejoinPl" "PlayerId\030\002 \002(\r\022\017\n\007handNum\030\003 \002(\r\022B\n\020rejoi"
"ayerData\030\004 \003(\0132(.GameStartRejoinMessage." "nPlayerData\030\004 \003(\0132(.GameStartRejoinMessa"
"RejoinPlayerData\0329\n\020RejoinPlayerData\022\020\n\010" "ge.RejoinPlayerData\0329\n\020RejoinPlayerData\022"
"playerId\030\001 \002(\r\022\023\n\013playerMoney\030\002 \002(\r\"\333\001\n\020" "\020\n\010playerId\030\001 \002(\r\022\023\n\013playerMoney\030\002 \002(\r\"\333"
"HandStartMessage\022\016\n\006gameId\030\001 \002(\r\0220\n\nplai" "\001\n\020HandStartMessage\022\016\n\006gameId\030\001 \002(\r\0220\n\np"
"nCards\030\002 \001(\0132\034.HandStartMessage.PlainCar" "lainCards\030\002 \001(\0132\034.HandStartMessage.Plain"
"ds\022\026\n\016encryptedCards\030\003 \001(\014\022\022\n\nsmallBlind" "Cards\022\026\n\016encryptedCards\030\003 \001(\014\022\022\n\nsmallBl"
"\030\004 \002(\r\022#\n\nseatStates\030\005 \003(\0162\017.NetPlayerSt" "ind\030\004 \002(\r\022#\n\nseatStates\030\005 \003(\0162\017.NetPlaye"
"ate\0324\n\nPlainCards\022\022\n\nplainCard1\030\001 \002(\r\022\022\n" "rState\0324\n\nPlainCards\022\022\n\nplainCard1\030\001 \002(\r"
"\nplainCard2\030\002 \002(\r\"X\n\022PlayersTurnMessage\022" "\022\022\n\nplainCard2\030\002 \002(\r\"X\n\022PlayersTurnMessa"
"\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022 \n\tgam" "ge\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022 \n\t"
"eState\030\003 \002(\0162\r.NetGameState\"\226\001\n\026MyAction" "gameState\030\003 \002(\0162\r.NetGameState\"\226\001\n\026MyAct"
"RequestMessage\022\016\n\006gameId\030\001 \002(\r\022\017\n\007handNu" "ionRequestMessage\022\016\n\006gameId\030\001 \002(\r\022\017\n\007han"
"m\030\002 \002(\r\022 \n\tgameState\030\003 \002(\0162\r.NetGameStat" "dNum\030\002 \002(\r\022 \n\tgameState\030\003 \002(\0162\r.NetGameS"
"e\022\"\n\010myAction\030\004 \002(\0162\020.NetPlayerAction\022\025\n" "tate\022\"\n\010myAction\030\004 \002(\0162\020.NetPlayerAction"
"\rmyRelativeBet\030\005 \002(\r\"\271\002\n\031YourActionRejec" "\022\025\n\rmyRelativeBet\030\005 \002(\r\"\271\002\n\031YourActionRe"
"tedMessage\022\016\n\006gameId\030\001 \002(\r\022 \n\tgameState\030" "jectedMessage\022\016\n\006gameId\030\001 \002(\r\022 \n\tgameSta"
"\002 \002(\0162\r.NetGameState\022$\n\nyourAction\030\003 \002(\016" "te\030\002 \002(\0162\r.NetGameState\022$\n\nyourAction\030\003 "
"2\020.NetPlayerAction\022\027\n\017yourRelativeBet\030\004 " "\002(\0162\020.NetPlayerAction\022\027\n\017yourRelativeBet"
"\002(\r\022C\n\017rejectionReason\030\005 \002(\0162*.YourActio" "\030\004 \002(\r\022C\n\017rejectionReason\030\005 \002(\0162*.YourAc"
"nRejectedMessage.RejectionReason\"f\n\017Reje" "tionRejectedMessage.RejectionReason\"f\n\017R"
"ctionReason\022\034\n\030rejectedInvalidGameState\020" "ejectionReason\022\034\n\030rejectedInvalidGameSta"
"\001\022\027\n\023rejectedNotYourTurn\020\002\022\034\n\030rejectedAc" "te\020\001\022\027\n\023rejectedNotYourTurn\020\002\022\034\n\030rejecte"
"tionNotAllowed\020\003\"\335\001\n\030PlayersActionDoneMe" "dActionNotAllowed\020\003\"\335\001\n\030PlayersActionDon"
"ssage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022" "eMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002"
" \n\tgameState\030\003 \002(\0162\r.NetGameState\022&\n\014pla" "(\r\022 \n\tgameState\030\003 \002(\0162\r.NetGameState\022&\n\014"
"yerAction\030\004 \002(\0162\020.NetPlayerAction\022\026\n\016tot" "playerAction\030\004 \002(\0162\020.NetPlayerAction\022\026\n\016"
"alPlayerBet\030\005 \002(\r\022\023\n\013playerMoney\030\006 \002(\r\022\022" "totalPlayerBet\030\005 \002(\r\022\023\n\013playerMoney\030\006 \002("
"\n\nhighestSet\030\007 \002(\r\022\024\n\014minimumRaise\030\010 \002(\r" "\r\022\022\n\nhighestSet\030\007 \002(\r\022\024\n\014minimumRaise\030\010 "
"\"_\n\024DealFlopCardsMessage\022\016\n\006gameId\030\001 \002(\r" "\002(\r\"_\n\024DealFlopCardsMessage\022\016\n\006gameId\030\001 "
"\022\021\n\tflopCard1\030\002 \002(\r\022\021\n\tflopCard2\030\003 \002(\r\022\021" "\002(\r\022\021\n\tflopCard1\030\002 \002(\r\022\021\n\tflopCard2\030\003 \002("
"\n\tflopCard3\030\004 \002(\r\"7\n\023DealTurnCardMessage" "\r\022\021\n\tflopCard3\030\004 \002(\r\"7\n\023DealTurnCardMess"
"\022\016\n\006gameId\030\001 \002(\r\022\020\n\010turnCard\030\002 \002(\r\"9\n\024De" "age\022\016\n\006gameId\030\001 \002(\r\022\020\n\010turnCard\030\002 \002(\r\"9\n"
"alRiverCardMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n\tri" "\024DealRiverCardMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n"
"verCard\030\002 \002(\r\"\252\001\n\025AllInShowCardsMessage\022" "\triverCard\030\002 \002(\r\"\252\001\n\025AllInShowCardsMessa"
"\016\n\006gameId\030\001 \002(\r\0228\n\014playersAllIn\030\002 \003(\0132\"." "ge\022\016\n\006gameId\030\001 \002(\r\0228\n\014playersAllIn\030\002 \003(\013"
"AllInShowCardsMessage.PlayerAllIn\032G\n\013Pla" "2\".AllInShowCardsMessage.PlayerAllIn\032G\n\013"
"yerAllIn\022\020\n\010playerId\030\001 \002(\r\022\022\n\nallInCard1" "PlayerAllIn\022\020\n\010playerId\030\001 \002(\r\022\022\n\nallInCa"
"\030\002 \002(\r\022\022\n\nallInCard2\030\003 \002(\r\"Q\n\031EndOfHandS" "rd1\030\002 \002(\r\022\022\n\nallInCard2\030\003 \002(\r\"Q\n\031EndOfHa"
"howCardsMessage\022\016\n\006gameId\030\001 \002(\r\022$\n\rplaye" "ndShowCardsMessage\022\016\n\006gameId\030\001 \002(\r\022$\n\rpl"
"rResults\030\002 \003(\0132\r.PlayerResult\"d\n\031EndOfHa" "ayerResults\030\002 \003(\0132\r.PlayerResult\"d\n\031EndO"
"ndHideCardsMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pl" "fHandHideCardsMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n"
"ayerId\030\002 \002(\r\022\020\n\010moneyWon\030\003 \002(\r\022\023\n\013player" "\010playerId\030\002 \002(\r\022\020\n\010moneyWon\030\003 \002(\r\022\023\n\013pla"
"Money\030\004 \002(\r\"\033\n\031ShowMyCardsRequestMessage" "yerMoney\030\004 \002(\r\"\033\n\031ShowMyCardsRequestMess"
"\"@\n\031AfterHandShowCardsMessage\022#\n\014playerR" "age\"@\n\031AfterHandShowCardsMessage\022#\n\014play"
"esult\030\001 \002(\0132\r.PlayerResult\":\n\020EndOfGameM" "erResult\030\001 \002(\0132\r.PlayerResult\":\n\020EndOfGa"
"essage\022\016\n\006gameId\030\001 \002(\r\022\026\n\016winnerPlayerId" "meMessage\022\016\n\006gameId\030\001 \002(\r\022\026\n\016winnerPlaye"
"\030\002 \002(\r\"B\n\026PlayerIdChangedMessage\022\023\n\013oldP" "rId\030\002 \002(\r\"B\n\026PlayerIdChangedMessage\022\023\n\013o"
"layerId\030\001 \002(\r\022\023\n\013newPlayerId\030\002 \002(\r\"8\n\024As" "ldPlayerId\030\001 \002(\r\022\023\n\013newPlayerId\030\002 \002(\r\"8\n"
"kKickPlayerMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pl" "\024AskKickPlayerMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n"
"ayerId\030\002 \002(\r\"\247\002\n\024AskKickDeniedMessage\022\016\n" "\010playerId\030\002 \002(\r\"\247\002\n\024AskKickDeniedMessage"
"\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022@\n\020kickD" "\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022@\n\020ki"
"eniedReason\030\003 \002(\0162&.AskKickDeniedMessage" "ckDeniedReason\030\003 \002(\0162&.AskKickDeniedMess"
".KickDeniedReason\"\252\001\n\020KickDeniedReason\022\036" "age.KickDeniedReason\"\252\001\n\020KickDeniedReaso"
"\n\032kickDeniedInvalidGameState\020\000\022\031\n\025kickDe" "n\022\036\n\032kickDeniedInvalidGameState\020\000\022\031\n\025kic"
"niedNotPossible\020\001\022\033\n\027kickDeniedTryAgainL" "kDeniedNotPossible\020\001\022\033\n\027kickDeniedTryAga"
"ater\020\002\022\037\n\033kickDeniedAlreadyInProgress\020\003\022" "inLater\020\002\022\037\n\033kickDeniedAlreadyInProgress"
"\035\n\031kickDeniedInvalidPlayerId\020\004\"\245\001\n\030Start" "\020\003\022\035\n\031kickDeniedInvalidPlayerId\020\004\"\245\001\n\030St"
"KickPetitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\np" "artKickPetitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022"
"etitionId\030\002 \002(\r\022\031\n\021proposingPlayerId\030\003 \002" "\n\npetitionId\030\002 \002(\r\022\031\n\021proposingPlayerId\030"
"(\r\022\024\n\014kickPlayerId\030\004 \002(\r\022\026\n\016kickTimeoutS" "\003 \002(\r\022\024\n\014kickPlayerId\030\004 \002(\r\022\026\n\016kickTimeo"
"ec\030\005 \002(\r\022\034\n\024numVotesNeededToKick\030\006 \002(\r\"N" "utSec\030\005 \002(\r\022\034\n\024numVotesNeededToKick\030\006 \002("
"\n\026VoteKickRequestMessage\022\016\n\006gameId\030\001 \002(\r" "\r\"N\n\026VoteKickRequestMessage\022\016\n\006gameId\030\001 "
"\022\022\n\npetitionId\030\002 \002(\r\022\020\n\010voteKick\030\003 \002(\010\"\337" "\002(\r\022\022\n\npetitionId\030\002 \002(\r\022\020\n\010voteKick\030\003 \002("
"\001\n\024VoteKickReplyMessage\022\016\n\006gameId\030\001 \002(\r\022" "\010\"\337\001\n\024VoteKickReplyMessage\022\016\n\006gameId\030\001 \002"
"\022\n\npetitionId\030\002 \002(\r\022B\n\021voteKickReplyType" "(\r\022\022\n\npetitionId\030\002 \002(\r\022B\n\021voteKickReplyT"
"\030\003 \002(\0162\'.VoteKickReplyMessage.VoteKickRe" "ype\030\003 \002(\0162\'.VoteKickReplyMessage.VoteKic"
"plyType\"_\n\021VoteKickReplyType\022\017\n\013voteKick" "kReplyType\"_\n\021VoteKickReplyType\022\017\n\013voteK"
"Ack\020\000\022\031\n\025voteKickDeniedInvalid\020\001\022\036\n\032vote" "ickAck\020\000\022\031\n\025voteKickDeniedInvalid\020\001\022\036\n\032v"
"KickDeniedAlreadyVoted\020\002\"\240\001\n\031KickPetitio" "oteKickDeniedAlreadyVoted\020\002\"\240\001\n\031KickPeti"
"nUpdateMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npetiti" "tionUpdateMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npet"
"onId\030\002 \002(\r\022\036\n\026numVotesAgainstKicking\030\003 \002" "itionId\030\002 \002(\r\022\036\n\026numVotesAgainstKicking\030"
"(\r\022!\n\031numVotesInFavourOfKicking\030\004 \002(\r\022\034\n" "\003 \002(\r\022!\n\031numVotesInFavourOfKicking\030\004 \002(\r"
"\024numVotesNeededToKick\030\005 \002(\r\"\344\002\n\026EndKickP" "\022\034\n\024numVotesNeededToKick\030\005 \002(\r\"\344\002\n\026EndKi"
"etitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npetiti" "ckPetitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npet"
"onId\030\002 \002(\r\022\036\n\026numVotesAgainstKicking\030\003 \002" "itionId\030\002 \002(\r\022\036\n\026numVotesAgainstKicking\030"
"(\r\022!\n\031numVotesInFavourOfKicking\030\004 \002(\r\022\032\n" "\003 \002(\r\022!\n\031numVotesInFavourOfKicking\030\004 \002(\r"
"\022resultPlayerKicked\030\005 \002(\r\022D\n\021petitionEnd" "\022\032\n\022resultPlayerKicked\030\005 \002(\r\022D\n\021petition"
"Reason\030\006 \002(\0162).EndKickPetitionMessage.Pe" "EndReason\030\006 \002(\0162).EndKickPetitionMessage"
"titionEndReason\"\200\001\n\021PetitionEndReason\022\032\n" ".PetitionEndReason\"\200\001\n\021PetitionEndReason"
"\026petitionEndEnoughVotes\020\000\022\034\n\030petitionEnd" "\022\032\n\026petitionEndEnoughVotes\020\000\022\034\n\030petition"
"TooFewPlayers\020\001\022\031\n\025petitionEndPlayerLeft" "EndTooFewPlayers\020\001\022\031\n\025petitionEndPlayerL"
"\020\002\022\026\n\022petitionEndTimeout\020\003\"\357\001\n\021Statistic" "eft\020\002\022\026\n\022petitionEndTimeout\020\003\"\357\001\n\021Statis"
"sMessage\0229\n\016statisticsData\030\001 \003(\0132!.Stati" "ticsMessage\0229\n\016statisticsData\030\001 \003(\0132!.St"
"sticsMessage.StatisticsData\032\236\001\n\016Statisti" "atisticsMessage.StatisticsData\032\236\001\n\016Stati"
"csData\022H\n\016statisticsType\030\001 \002(\01620.Statist" "sticsData\022H\n\016statisticsType\030\001 \002(\01620.Stat"
"icsMessage.StatisticsData.StatisticsType" "isticsMessage.StatisticsData.StatisticsT"
"\022\027\n\017statisticsValue\030\002 \002(\r\")\n\016StatisticsT" "ype\022\027\n\017statisticsValue\030\002 \002(\r\")\n\016Statisti"
"ype\022\027\n\023statNumberOfPlayers\020\001\"T\n\022ChatRequ" "csType\022\027\n\023statNumberOfPlayers\020\001\"T\n\022ChatR"
"estMessage\022\024\n\014targetGameId\030\001 \001(\r\022\026\n\016targ" "equestMessage\022\024\n\014targetGameId\030\001 \001(\r\022\026\n\016t"
"etPlayerId\030\002 \001(\r\022\020\n\010chatText\030\003 \002(\t\"\330\001\n\013C" "argetPlayerId\030\002 \001(\r\022\020\n\010chatText\030\003 \002(\t\"\330\001"
"hatMessage\022\016\n\006gameId\030\001 \001(\r\022\020\n\010playerId\030\002" "\n\013ChatMessage\022\016\n\006gameId\030\001 \001(\r\022\020\n\010playerI"
" \001(\r\022\'\n\010chatType\030\003 \002(\0162\025.ChatMessage.Cha" "d\030\002 \001(\r\022\'\n\010chatType\030\003 \002(\0162\025.ChatMessage."
"tType\022\020\n\010chatText\030\004 \002(\t\"l\n\010ChatType\022\021\n\rc" "ChatType\022\020\n\010chatText\030\004 \002(\t\"l\n\010ChatType\022\021"
"hatTypeLobby\020\000\022\020\n\014chatTypeGame\020\001\022\017\n\013chat" "\n\rchatTypeLobby\020\000\022\020\n\014chatTypeGame\020\001\022\017\n\013c"
"TypeBot\020\002\022\025\n\021chatTypeBroadcast\020\003\022\023\n\017chat" "hatTypeBot\020\002\022\025\n\021chatTypeBroadcast\020\003\022\023\n\017c"
"TypePrivate\020\004\"%\n\021ChatRejectMessage\022\020\n\010ch" "hatTypePrivate\020\004\"%\n\021ChatRejectMessage\022\020\n"
"atText\030\001 \002(\t\")\n\rDialogMessage\022\030\n\020notific" "\010chatText\030\001 \002(\t\")\n\rDialogMessage\022\030\n\020noti"
"ationText\030\001 \002(\t\"\321\001\n\025TimeoutWarningMessag" "ficationText\030\001 \002(\t\"\321\001\n\025TimeoutWarningMes"
"e\022;\n\rtimeoutReason\030\001 \002(\0162$.TimeoutWarnin" "sage\022;\n\rtimeoutReason\030\001 \002(\0162$.TimeoutWar"
"gMessage.TimeoutReason\022\030\n\020remainingSecon" "ningMessage.TimeoutReason\022\030\n\020remainingSe"
"ds\030\002 \002(\r\"a\n\rTimeoutReason\022\031\n\025timeoutNoDa" "conds\030\002 \002(\r\"a\n\rTimeoutReason\022\031\n\025timeoutN"
"taReceived\020\000\022\027\n\023timeoutInactiveGame\020\001\022\034\n" "oDataReceived\020\000\022\027\n\023timeoutInactiveGame\020\001"
"\030timeoutKickAfterAutofold\020\002\"\025\n\023ResetTime" "\022\034\n\030timeoutKickAfterAutofold\020\002\"\025\n\023ResetT"
"outMessage\"K\n\023ReportAvatarMessage\022\030\n\020rep" "imeoutMessage\"K\n\023ReportAvatarMessage\022\030\n\020"
"ortedPlayerId\030\001 \002(\r\022\032\n\022reportedAvatarHas" "reportedPlayerId\030\001 \002(\r\022\032\n\022reportedAvatar"
"h\030\002 \002(\014\"\336\001\n\026ReportAvatarAckMessage\022\030\n\020re" "Hash\030\002 \002(\014\"\336\001\n\026ReportAvatarAckMessage\022\030\n"
"portedPlayerId\030\001 \002(\r\022F\n\022reportAvatarResu" "\020reportedPlayerId\030\001 \002(\r\022F\n\022reportAvatarR"
"lt\030\002 \002(\0162*.ReportAvatarAckMessage.Report" "esult\030\002 \002(\0162*.ReportAvatarAckMessage.Rep"
"AvatarResult\"b\n\022ReportAvatarResult\022\030\n\024av" "ortAvatarResult\"b\n\022ReportAvatarResult\022\030\n"
"atarReportAccepted\020\000\022\031\n\025avatarReportDupl" "\024avatarReportAccepted\020\000\022\031\n\025avatarReportD"
"icate\020\001\022\027\n\023avatarReportInvalid\020\002\"+\n\021Repo" "uplicate\020\001\022\027\n\023avatarReportInvalid\020\002\"+\n\021R"
"rtGameMessage\022\026\n\016reportedGameId\030\001 \002(\r\"\314\001" "eportGameMessage\022\026\n\016reportedGameId\030\001 \002(\r"
"\n\024ReportGameAckMessage\022\026\n\016reportedGameId" "\"\314\001\n\024ReportGameAckMessage\022\026\n\016reportedGam"
"\030\001 \002(\r\022@\n\020reportGameResult\030\002 \002(\0162&.Repor" "eId\030\001 \002(\r\022@\n\020reportGameResult\030\002 \002(\0162&.Re"
"tGameAckMessage.ReportGameResult\"Z\n\020Repo" "portGameAckMessage.ReportGameResult\"Z\n\020R"
"rtGameResult\022\026\n\022gameReportAccepted\020\000\022\027\n\023" "eportGameResult\022\026\n\022gameReportAccepted\020\000\022"
"gameReportDuplicate\020\001\022\025\n\021gameReportInval" "\027\n\023gameReportDuplicate\020\001\022\025\n\021gameReportIn"
"id\020\002\"\220\003\n\014ErrorMessage\022.\n\013errorReason\030\001 \002" "valid\020\002\"\220\003\n\014ErrorMessage\022.\n\013errorReason\030"
"(\0162\031.ErrorMessage.ErrorReason\"\317\002\n\013ErrorR" "\001 \002(\0162\031.ErrorMessage.ErrorReason\"\317\002\n\013Err"
"eason\022\014\n\010reserved\020\000\022\033\n\027initVersionNotSup" "orReason\022\014\n\010reserved\020\000\022\033\n\027initVersionNot"
"ported\020\001\022\022\n\016initServerFull\020\002\022\023\n\017initAuth" "Supported\020\001\022\022\n\016initServerFull\020\002\022\023\n\017initA"
"Failure\020\003\022\027\n\023initPlayerNameInUse\020\004\022\031\n\025in" "uthFailure\020\003\022\027\n\023initPlayerNameInUse\020\004\022\031\n"
"itInvalidPlayerName\020\005\022\031\n\025initServerMaint" "\025initInvalidPlayerName\020\005\022\031\n\025initServerMa"
"enance\020\006\022\017\n\013initBlocked\020\007\022\022\n\016avatarTooLa" "intenance\020\006\022\017\n\013initBlocked\020\007\022\022\n\016avatarTo"
"rge\020\010\022\021\n\rinvalidPacket\020\t\022\020\n\014invalidState" "oLarge\020\010\022\021\n\rinvalidPacket\020\t\022\020\n\014invalidSt"
"\020\n\022\024\n\020kickedFromServer\020\013\022\024\n\020bannedFromSe" "ate\020\n\022\024\n\020kickedFromServer\020\013\022\024\n\020bannedFro"
"rver\020\014\022\023\n\017blockedByServer\020\r\022\022\n\016sessionTi" "mServer\020\014\022\023\n\017blockedByServer\020\r\022\022\n\016sessio"
"meout\020\016\"\3771\n\016PokerTHMessage\0227\n\013messageTyp" "nTimeout\020\016\"\3771\n\016PokerTHMessage\0227\n\013message"
"e\030\001 \002(\0162\".PokerTHMessage.PokerTHMessageT" "Type\030\001 \002(\0162\".PokerTHMessage.PokerTHMessa"
"ype\022)\n\017announceMessage\030\002 \001(\0132\020.AnnounceM" "geType\022)\n\017announceMessage\030\002 \001(\0132\020.Announ"
"essage\022!\n\013initMessage\030\003 \001(\0132\014.InitMessag" "ceMessage\022!\n\013initMessage\030\003 \001(\0132\014.InitMes"
"e\022\?\n\032authServerChallengeMessage\030\004 \001(\0132\033." "sage\022\?\n\032authServerChallengeMessage\030\004 \001(\013"
"AuthServerChallengeMessage\022=\n\031authClient" "2\033.AuthServerChallengeMessage\022=\n\031authCli"
"ResponseMessage\030\005 \001(\0132\032.AuthClientRespon" "entResponseMessage\030\005 \001(\0132\032.AuthClientRes"
"seMessage\022E\n\035authServerVerificationMessa" "ponseMessage\022E\n\035authServerVerificationMe"
"ge\030\006 \001(\0132\036.AuthServerVerificationMessage" "ssage\030\006 \001(\0132\036.AuthServerVerificationMess"
"\022\'\n\016initAckMessage\030\007 \001(\0132\017.InitAckMessag" "age\022\'\n\016initAckMessage\030\007 \001(\0132\017.InitAckMes"
"e\0223\n\024avatarRequestMessage\030\010 \001(\0132\025.Avatar" "sage\0223\n\024avatarRequestMessage\030\010 \001(\0132\025.Ava"
"RequestMessage\0221\n\023avatarHeaderMessage\030\t " "tarRequestMessage\0221\n\023avatarHeaderMessage"
"\001(\0132\024.AvatarHeaderMessage\022-\n\021avatarDataM" "\030\t \001(\0132\024.AvatarHeaderMessage\022-\n\021avatarDa"
"essage\030\n \001(\0132\022.AvatarDataMessage\022+\n\020avat" "taMessage\030\n \001(\0132\022.AvatarDataMessage\022+\n\020a"
"arEndMessage\030\013 \001(\0132\021.AvatarEndMessage\0223\n" "vatarEndMessage\030\013 \001(\0132\021.AvatarEndMessage"
"\024unknownAvatarMessage\030\014 \001(\0132\025.UnknownAva" "\0223\n\024unknownAvatarMessage\030\014 \001(\0132\025.Unknown"
"tarMessage\022-\n\021playerListMessage\030\r \001(\0132\022." "AvatarMessage\022-\n\021playerListMessage\030\r \001(\013"
"PlayerListMessage\022/\n\022gameListNewMessage\030" "2\022.PlayerListMessage\022/\n\022gameListNewMessa"
"\016 \001(\0132\023.GameListNewMessage\0225\n\025gameListUp" "ge\030\016 \001(\0132\023.GameListNewMessage\0225\n\025gameLis"
"dateMessage\030\017 \001(\0132\026.GameListUpdateMessag" "tUpdateMessage\030\017 \001(\0132\026.GameListUpdateMes"
"e\022A\n\033gameListPlayerJoinedMessage\030\020 \001(\0132\034" "sage\022A\n\033gameListPlayerJoinedMessage\030\020 \001("
".GameListPlayerJoinedMessage\022=\n\031gameList" "\0132\034.GameListPlayerJoinedMessage\022=\n\031gameL"
"PlayerLeftMessage\030\021 \001(\0132\032.GameListPlayer" "istPlayerLeftMessage\030\021 \001(\0132\032.GameListPla"
"LeftMessage\022A\n\033gameListAdminChangedMessa" "yerLeftMessage\022A\n\033gameListAdminChangedMe"
"ge\030\022 \001(\0132\034.GameListAdminChangedMessage\022;" "ssage\030\022 \001(\0132\034.GameListAdminChangedMessag"
"\n\030playerInfoRequestMessage\030\023 \001(\0132\031.Playe" "e\022;\n\030playerInfoRequestMessage\030\023 \001(\0132\031.Pl"
"rInfoRequestMessage\0227\n\026playerInfoReplyMe" "ayerInfoRequestMessage\0227\n\026playerInfoRepl"
"ssage\030\024 \001(\0132\027.PlayerInfoReplyMessage\022\?\n\032" "yMessage\030\024 \001(\0132\027.PlayerInfoReplyMessage\022"
"subscriptionRequestMessage\030\025 \001(\0132\033.Subsc" "\?\n\032subscriptionRequestMessage\030\025 \001(\0132\033.Su"
"riptionRequestMessage\0229\n\027joinExistingGam" "bscriptionRequestMessage\0229\n\027joinExisting"
"eMessage\030\026 \001(\0132\030.JoinExistingGameMessage" "GameMessage\030\026 \001(\0132\030.JoinExistingGameMess"
"\022/\n\022joinNewGameMessage\030\027 \001(\0132\023.JoinNewGa" "age\022/\n\022joinNewGameMessage\030\027 \001(\0132\023.JoinNe"
"meMessage\022=\n\031rejoinExistingGameMessage\030\030" "wGameMessage\022=\n\031rejoinExistingGameMessag"
" \001(\0132\032.RejoinExistingGameMessage\022/\n\022join" "e\030\030 \001(\0132\032.RejoinExistingGameMessage\022/\n\022j"
"GameAckMessage\030\031 \001(\0132\023.JoinGameAckMessag" "oinGameAckMessage\030\031 \001(\0132\023.JoinGameAckMes"
"e\0225\n\025joinGameFailedMessage\030\032 \001(\0132\026.JoinG" "sage\0225\n\025joinGameFailedMessage\030\032 \001(\0132\026.Jo"
"ameFailedMessage\0229\n\027gamePlayerJoinedMess" "inGameFailedMessage\0229\n\027gamePlayerJoinedM"
"age\030\033 \001(\0132\030.GamePlayerJoinedMessage\0225\n\025g" "essage\030\033 \001(\0132\030.GamePlayerJoinedMessage\0225"
"amePlayerLeftMessage\030\034 \001(\0132\026.GamePlayerL" "\n\025gamePlayerLeftMessage\030\034 \001(\0132\026.GamePlay"
"eftMessage\0229\n\027gameAdminChangedMessage\030\035 " "erLeftMessage\0229\n\027gameAdminChangedMessage"
"\001(\0132\030.GameAdminChangedMessage\0227\n\026removed" "\030\035 \001(\0132\030.GameAdminChangedMessage\0227\n\026remo"
"FromGameMessage\030\036 \001(\0132\027.RemovedFromGameM" "vedFromGameMessage\030\036 \001(\0132\027.RemovedFromGa"
"essage\022;\n\030kickPlayerRequestMessage\030\037 \001(\013" "meMessage\022;\n\030kickPlayerRequestMessage\030\037 "
"2\031.KickPlayerRequestMessage\0229\n\027leaveGame" "\001(\0132\031.KickPlayerRequestMessage\0229\n\027leaveG"
"RequestMessage\030 \001(\0132\030.LeaveGameRequestM" "ameRequestMessage\030 \001(\0132\030.LeaveGameReque"
"essage\022=\n\031invitePlayerToGameMessage\030! \001(" "stMessage\022=\n\031invitePlayerToGameMessage\030!"
"\0132\032.InvitePlayerToGameMessage\0221\n\023inviteN" " \001(\0132\032.InvitePlayerToGameMessage\0221\n\023invi"
"otifyMessage\030\" \001(\0132\024.InviteNotifyMessage" "teNotifyMessage\030\" \001(\0132\024.InviteNotifyMess"
"\022A\n\033rejectGameInvitationMessage\030# \001(\0132\034." "age\022A\n\033rejectGameInvitationMessage\030# \001(\013"
"RejectGameInvitationMessage\0227\n\026rejectInv" "2\034.RejectGameInvitationMessage\0227\n\026reject"
"NotifyMessage\030$ \001(\0132\027.RejectInvNotifyMes" "InvNotifyMessage\030$ \001(\0132\027.RejectInvNotify"
"sage\022-\n\021startEventMessage\030% \001(\0132\022.StartE" "Message\022-\n\021startEventMessage\030% \001(\0132\022.Sta"
"ventMessage\0223\n\024startEventAckMessage\030& \001(" "rtEventMessage\0223\n\024startEventAckMessage\030&"
"\0132\025.StartEventAckMessage\0229\n\027gameStartIni" " \001(\0132\025.StartEventAckMessage\0229\n\027gameStart"
"tialMessage\030\' \001(\0132\030.GameStartInitialMess" "InitialMessage\030\' \001(\0132\030.GameStartInitialM"
"age\0227\n\026gameStartRejoinMessage\030( \001(\0132\027.Ga" "essage\0227\n\026gameStartRejoinMessage\030( \001(\0132\027"
"meStartRejoinMessage\022+\n\020handStartMessage" ".GameStartRejoinMessage\022+\n\020handStartMess"
"\030) \001(\0132\021.HandStartMessage\022/\n\022playersTurn" "age\030) \001(\0132\021.HandStartMessage\022/\n\022playersT"
"Message\030* \001(\0132\023.PlayersTurnMessage\0227\n\026my" "urnMessage\030* \001(\0132\023.PlayersTurnMessage\0227\n"
"ActionRequestMessage\030+ \001(\0132\027.MyActionReq" "\026myActionRequestMessage\030+ \001(\0132\027.MyAction"
"uestMessage\022=\n\031yourActionRejectedMessage" "RequestMessage\022=\n\031yourActionRejectedMess"
"\030, \001(\0132\032.YourActionRejectedMessage\022;\n\030pl" "age\030, \001(\0132\032.YourActionRejectedMessage\022;\n"
"ayersActionDoneMessage\030- \001(\0132\031.PlayersAc" "\030playersActionDoneMessage\030- \001(\0132\031.Player"
"tionDoneMessage\0223\n\024dealFlopCardsMessage\030" "sActionDoneMessage\0223\n\024dealFlopCardsMessa"
". \001(\0132\025.DealFlopCardsMessage\0221\n\023dealTurn" "ge\030. \001(\0132\025.DealFlopCardsMessage\0221\n\023dealT"
"CardMessage\030/ \001(\0132\024.DealTurnCardMessage\022" "urnCardMessage\030/ \001(\0132\024.DealTurnCardMessa"
"3\n\024dealRiverCardMessage\0300 \001(\0132\025.DealRive" "ge\0223\n\024dealRiverCardMessage\0300 \001(\0132\025.DealR"
"rCardMessage\0225\n\025allInShowCardsMessage\0301 " "iverCardMessage\0225\n\025allInShowCardsMessage"
"\001(\0132\026.AllInShowCardsMessage\022=\n\031endOfHand" "\0301 \001(\0132\026.AllInShowCardsMessage\022=\n\031endOfH"
"ShowCardsMessage\0302 \001(\0132\032.EndOfHandShowCa" "andShowCardsMessage\0302 \001(\0132\032.EndOfHandSho"
"rdsMessage\022=\n\031endOfHandHideCardsMessage\030" "wCardsMessage\022=\n\031endOfHandHideCardsMessa"
"3 \001(\0132\032.EndOfHandHideCardsMessage\022=\n\031sho" "ge\0303 \001(\0132\032.EndOfHandHideCardsMessage\022=\n\031"
"wMyCardsRequestMessage\0304 \001(\0132\032.ShowMyCar" "showMyCardsRequestMessage\0304 \001(\0132\032.ShowMy"
"dsRequestMessage\022=\n\031afterHandShowCardsMe" "CardsRequestMessage\022=\n\031afterHandShowCard"
"ssage\0305 \001(\0132\032.AfterHandShowCardsMessage\022" "sMessage\0305 \001(\0132\032.AfterHandShowCardsMessa"
"+\n\020endOfGameMessage\0306 \001(\0132\021.EndOfGameMes" "ge\022+\n\020endOfGameMessage\0306 \001(\0132\021.EndOfGame"
"sage\0227\n\026playerIdChangedMessage\0307 \001(\0132\027.P" "Message\0227\n\026playerIdChangedMessage\0307 \001(\0132"
"layerIdChangedMessage\0223\n\024askKickPlayerMe" "\027.PlayerIdChangedMessage\0223\n\024askKickPlaye"
"ssage\0308 \001(\0132\025.AskKickPlayerMessage\0223\n\024as" "rMessage\0308 \001(\0132\025.AskKickPlayerMessage\0223\n"
"kKickDeniedMessage\0309 \001(\0132\025.AskKickDenied" "\024askKickDeniedMessage\0309 \001(\0132\025.AskKickDen"
"Message\022;\n\030startKickPetitionMessage\030: \001(" "iedMessage\022;\n\030startKickPetitionMessage\030:"
"\0132\031.StartKickPetitionMessage\0227\n\026voteKick" " \001(\0132\031.StartKickPetitionMessage\0227\n\026voteK"
"RequestMessage\030; \001(\0132\027.VoteKickRequestMe" "ickRequestMessage\030; \001(\0132\027.VoteKickReques"
"ssage\0223\n\024voteKickReplyMessage\030< \001(\0132\025.Vo" "tMessage\0223\n\024voteKickReplyMessage\030< \001(\0132\025"
"teKickReplyMessage\022=\n\031kickPetitionUpdate" ".VoteKickReplyMessage\022=\n\031kickPetitionUpd"
"Message\030= \001(\0132\032.KickPetitionUpdateMessag" "ateMessage\030= \001(\0132\032.KickPetitionUpdateMes"
"e\0227\n\026endKickPetitionMessage\030> \001(\0132\027.EndK" "sage\0227\n\026endKickPetitionMessage\030> \001(\0132\027.E"
"ickPetitionMessage\022-\n\021statisticsMessage\030" "ndKickPetitionMessage\022-\n\021statisticsMessa"
"\? \001(\0132\022.StatisticsMessage\022/\n\022chatRequest" "ge\030\? \001(\0132\022.StatisticsMessage\022/\n\022chatRequ"
"Message\030@ \001(\0132\023.ChatRequestMessage\022!\n\013ch" "estMessage\030@ \001(\0132\023.ChatRequestMessage\022!\n"
"atMessage\030A \001(\0132\014.ChatMessage\022-\n\021chatRej" "\013chatMessage\030A \001(\0132\014.ChatMessage\022-\n\021chat"
"ectMessage\030B \001(\0132\022.ChatRejectMessage\022%\n\r" "RejectMessage\030B \001(\0132\022.ChatRejectMessage\022"
"dialogMessage\030C \001(\0132\016.DialogMessage\0225\n\025t" "%\n\rdialogMessage\030C \001(\0132\016.DialogMessage\0225"
"imeoutWarningMessage\030D \001(\0132\026.TimeoutWarn" "\n\025timeoutWarningMessage\030D \001(\0132\026.TimeoutW"
"ingMessage\0221\n\023resetTimeoutMessage\030E \001(\0132" "arningMessage\0221\n\023resetTimeoutMessage\030E \001"
"\024.ResetTimeoutMessage\0221\n\023reportAvatarMes" "(\0132\024.ResetTimeoutMessage\0221\n\023reportAvatar"
"sage\030F \001(\0132\024.ReportAvatarMessage\0227\n\026repo" "Message\030F \001(\0132\024.ReportAvatarMessage\0227\n\026r"
"rtAvatarAckMessage\030G \001(\0132\027.ReportAvatarA" "eportAvatarAckMessage\030G \001(\0132\027.ReportAvat"
"ckMessage\022-\n\021reportGameMessage\030H \001(\0132\022.R" "arAckMessage\022-\n\021reportGameMessage\030H \001(\0132"
"eportGameMessage\0223\n\024reportGameAckMessage" "\022.ReportGameMessage\0223\n\024reportGameAckMess"
"\030I \001(\0132\025.ReportGameAckMessage\022#\n\014errorMe" "age\030I \001(\0132\025.ReportGameAckMessage\022#\n\014erro"
"ssage\030J \001(\0132\r.ErrorMessage\"\244\022\n\022PokerTHMe" "rMessage\030J \001(\0132\r.ErrorMessage\"\244\022\n\022PokerT"
"ssageType\022\030\n\024Type_AnnounceMessage\020\001\022\024\n\020T" "HMessageType\022\030\n\024Type_AnnounceMessage\020\001\022\024"
"ype_InitMessage\020\002\022#\n\037Type_AuthServerChal" "\n\020Type_InitMessage\020\002\022#\n\037Type_AuthServerC"
"lengeMessage\020\003\022\"\n\036Type_AuthClientRespons" "hallengeMessage\020\003\022\"\n\036Type_AuthClientResp"
"eMessage\020\004\022&\n\"Type_AuthServerVerificatio" "onseMessage\020\004\022&\n\"Type_AuthServerVerifica"
"nMessage\020\005\022\027\n\023Type_InitAckMessage\020\006\022\035\n\031T" "tionMessage\020\005\022\027\n\023Type_InitAckMessage\020\006\022\035"
"ype_AvatarRequestMessage\020\007\022\034\n\030Type_Avata" "\n\031Type_AvatarRequestMessage\020\007\022\034\n\030Type_Av"
"rHeaderMessage\020\010\022\032\n\026Type_AvatarDataMessa" "atarHeaderMessage\020\010\022\032\n\026Type_AvatarDataMe"
"ge\020\t\022\031\n\025Type_AvatarEndMessage\020\n\022\035\n\031Type_" "ssage\020\t\022\031\n\025Type_AvatarEndMessage\020\n\022\035\n\031Ty"
"UnknownAvatarMessage\020\013\022\032\n\026Type_PlayerLis" "pe_UnknownAvatarMessage\020\013\022\032\n\026Type_Player"
"tMessage\020\014\022\033\n\027Type_GameListNewMessage\020\r\022" "ListMessage\020\014\022\033\n\027Type_GameListNewMessage"
"\036\n\032Type_GameListUpdateMessage\020\016\022$\n Type_" "\020\r\022\036\n\032Type_GameListUpdateMessage\020\016\022$\n Ty"
"GameListPlayerJoinedMessage\020\017\022\"\n\036Type_Ga" "pe_GameListPlayerJoinedMessage\020\017\022\"\n\036Type"
"meListPlayerLeftMessage\020\020\022$\n Type_GameLi" "_GameListPlayerLeftMessage\020\020\022$\n Type_Gam"
"stAdminChangedMessage\020\021\022!\n\035Type_PlayerIn" "eListAdminChangedMessage\020\021\022!\n\035Type_Playe"
"foRequestMessage\020\022\022\037\n\033Type_PlayerInfoRep" "rInfoRequestMessage\020\022\022\037\n\033Type_PlayerInfo"
"lyMessage\020\023\022#\n\037Type_SubscriptionRequestM" "ReplyMessage\020\023\022#\n\037Type_SubscriptionReque"
"essage\020\024\022 \n\034Type_JoinExistingGameMessage" "stMessage\020\024\022 \n\034Type_JoinExistingGameMess"
"\020\025\022\033\n\027Type_JoinNewGameMessage\020\026\022\"\n\036Type_" "age\020\025\022\033\n\027Type_JoinNewGameMessage\020\026\022\"\n\036Ty"
"RejoinExistingGameMessage\020\027\022\033\n\027Type_Join" "pe_RejoinExistingGameMessage\020\027\022\033\n\027Type_J"
"GameAckMessage\020\030\022\036\n\032Type_JoinGameFailedM" "oinGameAckMessage\020\030\022\036\n\032Type_JoinGameFail"
"essage\020\031\022 \n\034Type_GamePlayerJoinedMessage" "edMessage\020\031\022 \n\034Type_GamePlayerJoinedMess"
"\020\032\022\036\n\032Type_GamePlayerLeftMessage\020\033\022 \n\034Ty" "age\020\032\022\036\n\032Type_GamePlayerLeftMessage\020\033\022 \n"
"pe_GameAdminChangedMessage\020\034\022\037\n\033Type_Rem" "\034Type_GameAdminChangedMessage\020\034\022\037\n\033Type_"
"ovedFromGameMessage\020\035\022!\n\035Type_KickPlayer" "RemovedFromGameMessage\020\035\022!\n\035Type_KickPla"
"RequestMessage\020\036\022 \n\034Type_LeaveGameReques" "yerRequestMessage\020\036\022 \n\034Type_LeaveGameReq"
"tMessage\020\037\022\"\n\036Type_InvitePlayerToGameMes" "uestMessage\020\037\022\"\n\036Type_InvitePlayerToGame"
"sage\020 \022\034\n\030Type_InviteNotifyMessage\020!\022$\n " "Message\020 \022\034\n\030Type_InviteNotifyMessage\020!\022"
"Type_RejectGameInvitationMessage\020\"\022\037\n\033Ty" "$\n Type_RejectGameInvitationMessage\020\"\022\037\n"
"pe_RejectInvNotifyMessage\020#\022\032\n\026Type_Star" "\033Type_RejectInvNotifyMessage\020#\022\032\n\026Type_S"
"tEventMessage\020$\022\035\n\031Type_StartEventAckMes" "tartEventMessage\020$\022\035\n\031Type_StartEventAck"
"sage\020%\022 \n\034Type_GameStartInitialMessage\020&" "Message\020%\022 \n\034Type_GameStartInitialMessag"
"\022\037\n\033Type_GameStartRejoinMessage\020\'\022\031\n\025Typ" "e\020&\022\037\n\033Type_GameStartRejoinMessage\020\'\022\031\n\025"
"e_HandStartMessage\020(\022\033\n\027Type_PlayersTurn" "Type_HandStartMessage\020(\022\033\n\027Type_PlayersT"
"Message\020)\022\037\n\033Type_MyActionRequestMessage" "urnMessage\020)\022\037\n\033Type_MyActionRequestMess"
"\020*\022\"\n\036Type_YourActionRejectedMessage\020+\022!" "age\020*\022\"\n\036Type_YourActionRejectedMessage\020"
"\n\035Type_PlayersActionDoneMessage\020,\022\035\n\031Typ" "+\022!\n\035Type_PlayersActionDoneMessage\020,\022\035\n\031"
"e_DealFlopCardsMessage\020-\022\034\n\030Type_DealTur" "Type_DealFlopCardsMessage\020-\022\034\n\030Type_Deal"
"nCardMessage\020.\022\035\n\031Type_DealRiverCardMess" "TurnCardMessage\020.\022\035\n\031Type_DealRiverCardM"
"age\020/\022\036\n\032Type_AllInShowCardsMessage\0200\022\"\n" "essage\020/\022\036\n\032Type_AllInShowCardsMessage\0200"
"\036Type_EndOfHandShowCardsMessage\0201\022\"\n\036Typ" "\022\"\n\036Type_EndOfHandShowCardsMessage\0201\022\"\n\036"
"e_EndOfHandHideCardsMessage\0202\022\"\n\036Type_Sh" "Type_EndOfHandHideCardsMessage\0202\022\"\n\036Type"
"owMyCardsRequestMessage\0203\022\"\n\036Type_AfterH" "_ShowMyCardsRequestMessage\0203\022\"\n\036Type_Aft"
"andShowCardsMessage\0204\022\031\n\025Type_EndOfGameM" "erHandShowCardsMessage\0204\022\031\n\025Type_EndOfGa"
"essage\0205\022\037\n\033Type_PlayerIdChangedMessage\020" "meMessage\0205\022\037\n\033Type_PlayerIdChangedMessa"
"6\022\035\n\031Type_AskKickPlayerMessage\0207\022\035\n\031Type" "ge\0206\022\035\n\031Type_AskKickPlayerMessage\0207\022\035\n\031T"
"_AskKickDeniedMessage\0208\022!\n\035Type_StartKic" "ype_AskKickDeniedMessage\0208\022!\n\035Type_Start"
"kPetitionMessage\0209\022\037\n\033Type_VoteKickReque" "KickPetitionMessage\0209\022\037\n\033Type_VoteKickRe"
"stMessage\020:\022\035\n\031Type_VoteKickReplyMessage" "questMessage\020:\022\035\n\031Type_VoteKickReplyMess"
"\020;\022\"\n\036Type_KickPetitionUpdateMessage\020<\022\037" "age\020;\022\"\n\036Type_KickPetitionUpdateMessage\020"
"\n\033Type_EndKickPetitionMessage\020=\022\032\n\026Type_" "<\022\037\n\033Type_EndKickPetitionMessage\020=\022\032\n\026Ty"
"StatisticsMessage\020>\022\033\n\027Type_ChatRequestM" "pe_StatisticsMessage\020>\022\033\n\027Type_ChatReque"
"essage\020\?\022\024\n\020Type_ChatMessage\020@\022\032\n\026Type_C" "stMessage\020\?\022\024\n\020Type_ChatMessage\020@\022\032\n\026Typ"
"hatRejectMessage\020A\022\026\n\022Type_DialogMessage" "e_ChatRejectMessage\020A\022\026\n\022Type_DialogMess"
"\020B\022\036\n\032Type_TimeoutWarningMessage\020C\022\034\n\030Ty" "age\020B\022\036\n\032Type_TimeoutWarningMessage\020C\022\034\n"
"pe_ResetTimeoutMessage\020D\022\034\n\030Type_ReportA" "\030Type_ResetTimeoutMessage\020D\022\034\n\030Type_Repo"
"vatarMessage\020E\022\037\n\033Type_ReportAvatarAckMe" "rtAvatarMessage\020E\022\037\n\033Type_ReportAvatarAc"
"ssage\020F\022\032\n\026Type_ReportGameMessage\020G\022\035\n\031T" "kMessage\020F\022\032\n\026Type_ReportGameMessage\020G\022\035"
"ype_ReportGameAckMessage\020H\022\025\n\021Type_Error" "\n\031Type_ReportGameAckMessage\020H\022\025\n\021Type_Er"
"Message\020I*\?\n\013NetGameMode\022\017\n\013gameCreated\020" "rorMessage\020I*H\n\013NetGameMode\022\022\n\016netGameCr"
"\001\022\017\n\013gameStarted\020\002\022\016\n\ngameClosed\020\003*\204\001\n\014N" "eated\020\001\022\022\n\016netGameStarted\020\002\022\021\n\rnetGameCl"
"etGameState\022\020\n\014statePreflop\020\000\022\r\n\tstateFl" "osed\020\003*\226\001\n\014NetGameState\022\023\n\017netStatePrefl"
"op\020\001\022\r\n\tstateTurn\020\002\022\016\n\nstateRiver\020\003\022\032\n\026s" "op\020\000\022\020\n\014netStateFlop\020\001\022\020\n\014netStateTurn\020\002"
"tatePreflopSmallBlind\020\004\022\030\n\024statePreflopB" "\022\021\n\rnetStateRiver\020\003\022\035\n\031netStatePreflopSm"
"igBlind\020\005*\203\001\n\017NetPlayerAction\022\016\n\nactionN" "allBlind\020\004\022\033\n\027netStatePreflopBigBlind\020\005*"
"one\020\000\022\016\n\nactionFold\020\001\022\017\n\013actionCheck\020\002\022\016" "\230\001\n\017NetPlayerAction\022\021\n\rnetActionNone\020\000\022\021"
"\n\nactionCall\020\003\022\r\n\tactionBet\020\004\022\017\n\013actionR" "\n\rnetActionFold\020\001\022\022\n\016netActionCheck\020\002\022\021\n"
"aise\020\005\022\017\n\013actionAllIn\020\006*_\n\016NetPlayerStat" "\rnetActionCall\020\003\022\020\n\014netActionBet\020\004\022\022\n\016ne"
"e\022\025\n\021playerStateNormal\020\000\022\036\n\032playerStateS" "tActionRaise\020\005\022\022\n\016netActionAllIn\020\006*h\n\016Ne"
"essionInactive\020\001\022\026\n\022playerStateNoMoney\020\002" "tPlayerState\022\030\n\024netPlayerStateNormal\020\000\022!"
"*X\n\020PlayerInfoRights\022\025\n\021playerRightsGues" "\n\035netPlayerStateSessionInactive\020\001\022\031\n\025net"
"t\020\001\022\026\n\022playerRightsNormal\020\002\022\025\n\021playerRig" "PlayerStateNoMoney\020\002*d\n\023NetPlayerInfoRig"
"htsAdmin\020\003*K\n\rNetAvatarType\022\022\n\016avatarIma" "hts\022\030\n\024netPlayerRightsGuest\020\001\022\031\n\025netPlay"
"gePng\020\001\022\022\n\016avatarImageJpg\020\002\022\022\n\016avatarIma" "erRightsNormal\020\002\022\030\n\024netPlayerRightsAdmin"
"geGif\020\003B\037\n\023de.pokerth.protocolB\010ProtoBuf", 17760); "\020\003*T\n\rNetAvatarType\022\025\n\021netAvatarImagePng"
"\020\001\022\025\n\021netAvatarImageJpg\020\002\022\025\n\021netAvatarIm"
"ageGif\020\003B\037\n\023de.pokerth.protocolB\010ProtoBu"
"f", 17841);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"pokerth.proto", &protobuf_RegisterTypes); "pokerth.proto", &protobuf_RegisterTypes);
NetGameInfo::default_instance_ = new NetGameInfo(); NetGameInfo::default_instance_ = new NetGameInfo();
@@ -2845,11 +2848,11 @@ bool NetPlayerState_IsValid(int value) {
} }
} }
const ::google::protobuf::EnumDescriptor* PlayerInfoRights_descriptor() { const ::google::protobuf::EnumDescriptor* NetPlayerInfoRights_descriptor() {
protobuf_AssignDescriptorsOnce(); protobuf_AssignDescriptorsOnce();
return PlayerInfoRights_descriptor_; return NetPlayerInfoRights_descriptor_;
} }
bool PlayerInfoRights_IsValid(int value) { bool NetPlayerInfoRights_IsValid(int value) {
switch(value) { switch(value) {
case 1: case 1:
case 2: case 2:
@@ -9986,7 +9989,7 @@ bool PlayerInfoReplyMessage_PlayerInfoData::MergePartialFromCodedStream(
break; break;
} }
// required .PlayerInfoRights playerRights = 3; // required .NetPlayerInfoRights playerRights = 3;
case 3: { case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
@@ -9995,8 +9998,8 @@ bool PlayerInfoReplyMessage_PlayerInfoData::MergePartialFromCodedStream(
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value))); input, &value)));
if (PlayerInfoRights_IsValid(value)) { if (NetPlayerInfoRights_IsValid(value)) {
set_playerrights(static_cast< PlayerInfoRights >(value)); set_playerrights(static_cast< NetPlayerInfoRights >(value));
} else { } else {
mutable_unknown_fields()->AddVarint(3, value); mutable_unknown_fields()->AddVarint(3, value);
} }
@@ -10070,7 +10073,7 @@ void PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizes(
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ishuman(), output); ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ishuman(), output);
} }
// required .PlayerInfoRights playerRights = 3; // required .NetPlayerInfoRights playerRights = 3;
if (has_playerrights()) { if (has_playerrights()) {
::google::protobuf::internal::WireFormatLite::WriteEnum( ::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->playerrights(), output); 3, this->playerrights(), output);
@@ -10114,7 +10117,7 @@ void PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizes(
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->ishuman(), target); target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->ishuman(), target);
} }
// required .PlayerInfoRights playerRights = 3; // required .NetPlayerInfoRights playerRights = 3;
if (has_playerrights()) { if (has_playerrights()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->playerrights(), target); 3, this->playerrights(), target);
@@ -10160,7 +10163,7 @@ int PlayerInfoReplyMessage_PlayerInfoData::ByteSize() const {
total_size += 1 + 1; total_size += 1 + 1;
} }
// required .PlayerInfoRights playerRights = 3; // required .NetPlayerInfoRights playerRights = 3;
if (has_playerrights()) { if (has_playerrights()) {
total_size += 1 + total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrights()); ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrights());
+57 -57
View File
@@ -667,13 +667,13 @@ inline bool PokerTHMessage_PokerTHMessageType_Parse(
PokerTHMessage_PokerTHMessageType_descriptor(), name, value); PokerTHMessage_PokerTHMessageType_descriptor(), name, value);
} }
enum NetGameMode { enum NetGameMode {
gameCreated = 1, netGameCreated = 1,
gameStarted = 2, netGameStarted = 2,
gameClosed = 3 netGameClosed = 3
}; };
bool NetGameMode_IsValid(int value); bool NetGameMode_IsValid(int value);
const NetGameMode NetGameMode_MIN = gameCreated; const NetGameMode NetGameMode_MIN = netGameCreated;
const NetGameMode NetGameMode_MAX = gameClosed; const NetGameMode NetGameMode_MAX = netGameClosed;
const int NetGameMode_ARRAYSIZE = NetGameMode_MAX + 1; const int NetGameMode_ARRAYSIZE = NetGameMode_MAX + 1;
const ::google::protobuf::EnumDescriptor* NetGameMode_descriptor(); const ::google::protobuf::EnumDescriptor* NetGameMode_descriptor();
@@ -687,16 +687,16 @@ inline bool NetGameMode_Parse(
NetGameMode_descriptor(), name, value); NetGameMode_descriptor(), name, value);
} }
enum NetGameState { enum NetGameState {
statePreflop = 0, netStatePreflop = 0,
stateFlop = 1, netStateFlop = 1,
stateTurn = 2, netStateTurn = 2,
stateRiver = 3, netStateRiver = 3,
statePreflopSmallBlind = 4, netStatePreflopSmallBlind = 4,
statePreflopBigBlind = 5 netStatePreflopBigBlind = 5
}; };
bool NetGameState_IsValid(int value); bool NetGameState_IsValid(int value);
const NetGameState NetGameState_MIN = statePreflop; const NetGameState NetGameState_MIN = netStatePreflop;
const NetGameState NetGameState_MAX = statePreflopBigBlind; const NetGameState NetGameState_MAX = netStatePreflopBigBlind;
const int NetGameState_ARRAYSIZE = NetGameState_MAX + 1; const int NetGameState_ARRAYSIZE = NetGameState_MAX + 1;
const ::google::protobuf::EnumDescriptor* NetGameState_descriptor(); const ::google::protobuf::EnumDescriptor* NetGameState_descriptor();
@@ -710,17 +710,17 @@ inline bool NetGameState_Parse(
NetGameState_descriptor(), name, value); NetGameState_descriptor(), name, value);
} }
enum NetPlayerAction { enum NetPlayerAction {
actionNone = 0, netActionNone = 0,
actionFold = 1, netActionFold = 1,
actionCheck = 2, netActionCheck = 2,
actionCall = 3, netActionCall = 3,
actionBet = 4, netActionBet = 4,
actionRaise = 5, netActionRaise = 5,
actionAllIn = 6 netActionAllIn = 6
}; };
bool NetPlayerAction_IsValid(int value); bool NetPlayerAction_IsValid(int value);
const NetPlayerAction NetPlayerAction_MIN = actionNone; const NetPlayerAction NetPlayerAction_MIN = netActionNone;
const NetPlayerAction NetPlayerAction_MAX = actionAllIn; const NetPlayerAction NetPlayerAction_MAX = netActionAllIn;
const int NetPlayerAction_ARRAYSIZE = NetPlayerAction_MAX + 1; const int NetPlayerAction_ARRAYSIZE = NetPlayerAction_MAX + 1;
const ::google::protobuf::EnumDescriptor* NetPlayerAction_descriptor(); const ::google::protobuf::EnumDescriptor* NetPlayerAction_descriptor();
@@ -734,13 +734,13 @@ inline bool NetPlayerAction_Parse(
NetPlayerAction_descriptor(), name, value); NetPlayerAction_descriptor(), name, value);
} }
enum NetPlayerState { enum NetPlayerState {
playerStateNormal = 0, netPlayerStateNormal = 0,
playerStateSessionInactive = 1, netPlayerStateSessionInactive = 1,
playerStateNoMoney = 2 netPlayerStateNoMoney = 2
}; };
bool NetPlayerState_IsValid(int value); bool NetPlayerState_IsValid(int value);
const NetPlayerState NetPlayerState_MIN = playerStateNormal; const NetPlayerState NetPlayerState_MIN = netPlayerStateNormal;
const NetPlayerState NetPlayerState_MAX = playerStateNoMoney; const NetPlayerState NetPlayerState_MAX = netPlayerStateNoMoney;
const int NetPlayerState_ARRAYSIZE = NetPlayerState_MAX + 1; const int NetPlayerState_ARRAYSIZE = NetPlayerState_MAX + 1;
const ::google::protobuf::EnumDescriptor* NetPlayerState_descriptor(); const ::google::protobuf::EnumDescriptor* NetPlayerState_descriptor();
@@ -753,34 +753,34 @@ inline bool NetPlayerState_Parse(
return ::google::protobuf::internal::ParseNamedEnum<NetPlayerState>( return ::google::protobuf::internal::ParseNamedEnum<NetPlayerState>(
NetPlayerState_descriptor(), name, value); NetPlayerState_descriptor(), name, value);
} }
enum PlayerInfoRights { enum NetPlayerInfoRights {
playerRightsGuest = 1, netPlayerRightsGuest = 1,
playerRightsNormal = 2, netPlayerRightsNormal = 2,
playerRightsAdmin = 3 netPlayerRightsAdmin = 3
}; };
bool PlayerInfoRights_IsValid(int value); bool NetPlayerInfoRights_IsValid(int value);
const PlayerInfoRights PlayerInfoRights_MIN = playerRightsGuest; const NetPlayerInfoRights NetPlayerInfoRights_MIN = netPlayerRightsGuest;
const PlayerInfoRights PlayerInfoRights_MAX = playerRightsAdmin; const NetPlayerInfoRights NetPlayerInfoRights_MAX = netPlayerRightsAdmin;
const int PlayerInfoRights_ARRAYSIZE = PlayerInfoRights_MAX + 1; const int NetPlayerInfoRights_ARRAYSIZE = NetPlayerInfoRights_MAX + 1;
const ::google::protobuf::EnumDescriptor* PlayerInfoRights_descriptor(); const ::google::protobuf::EnumDescriptor* NetPlayerInfoRights_descriptor();
inline const ::std::string& PlayerInfoRights_Name(PlayerInfoRights value) { inline const ::std::string& NetPlayerInfoRights_Name(NetPlayerInfoRights value) {
return ::google::protobuf::internal::NameOfEnum( return ::google::protobuf::internal::NameOfEnum(
PlayerInfoRights_descriptor(), value); NetPlayerInfoRights_descriptor(), value);
} }
inline bool PlayerInfoRights_Parse( inline bool NetPlayerInfoRights_Parse(
const ::std::string& name, PlayerInfoRights* value) { const ::std::string& name, NetPlayerInfoRights* value) {
return ::google::protobuf::internal::ParseNamedEnum<PlayerInfoRights>( return ::google::protobuf::internal::ParseNamedEnum<NetPlayerInfoRights>(
PlayerInfoRights_descriptor(), name, value); NetPlayerInfoRights_descriptor(), name, value);
} }
enum NetAvatarType { enum NetAvatarType {
avatarImagePng = 1, netAvatarImagePng = 1,
avatarImageJpg = 2, netAvatarImageJpg = 2,
avatarImageGif = 3 netAvatarImageGif = 3
}; };
bool NetAvatarType_IsValid(int value); bool NetAvatarType_IsValid(int value);
const NetAvatarType NetAvatarType_MIN = avatarImagePng; const NetAvatarType NetAvatarType_MIN = netAvatarImagePng;
const NetAvatarType NetAvatarType_MAX = avatarImageGif; const NetAvatarType NetAvatarType_MAX = netAvatarImageGif;
const int NetAvatarType_ARRAYSIZE = NetAvatarType_MAX + 1; const int NetAvatarType_ARRAYSIZE = NetAvatarType_MAX + 1;
const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor(); const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor();
@@ -3386,12 +3386,12 @@ class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::Message
inline bool ishuman() const; inline bool ishuman() const;
inline void set_ishuman(bool value); inline void set_ishuman(bool value);
// required .PlayerInfoRights playerRights = 3; // required .NetPlayerInfoRights playerRights = 3;
inline bool has_playerrights() const; inline bool has_playerrights() const;
inline void clear_playerrights(); inline void clear_playerrights();
static const int kPlayerRightsFieldNumber = 3; static const int kPlayerRightsFieldNumber = 3;
inline PlayerInfoRights playerrights() const; inline NetPlayerInfoRights playerrights() const;
inline void set_playerrights(PlayerInfoRights value); inline void set_playerrights(NetPlayerInfoRights value);
// optional string countryCode = 4; // optional string countryCode = 4;
inline bool has_countrycode() const; inline bool has_countrycode() const;
@@ -12986,7 +12986,7 @@ inline void PlayerInfoReplyMessage_PlayerInfoData::set_ishuman(bool value) {
ishuman_ = value; ishuman_ = value;
} }
// required .PlayerInfoRights playerRights = 3; // required .NetPlayerInfoRights playerRights = 3;
inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playerrights() const { inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playerrights() const {
return (_has_bits_[0] & 0x00000004u) != 0; return (_has_bits_[0] & 0x00000004u) != 0;
} }
@@ -13000,11 +13000,11 @@ inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playerrights() {
playerrights_ = 1; playerrights_ = 1;
clear_has_playerrights(); clear_has_playerrights();
} }
inline PlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { inline NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const {
return static_cast< PlayerInfoRights >(playerrights_); return static_cast< NetPlayerInfoRights >(playerrights_);
} }
inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(PlayerInfoRights value) { inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(NetPlayerInfoRights value) {
GOOGLE_DCHECK(PlayerInfoRights_IsValid(value)); GOOGLE_DCHECK(NetPlayerInfoRights_IsValid(value));
set_has_playerrights(); set_has_playerrights();
playerrights_ = value; playerrights_ = value;
} }
@@ -19347,8 +19347,8 @@ inline const EnumDescriptor* GetEnumDescriptor< NetPlayerState>() {
return NetPlayerState_descriptor(); return NetPlayerState_descriptor();
} }
template <> template <>
inline const EnumDescriptor* GetEnumDescriptor< PlayerInfoRights>() { inline const EnumDescriptor* GetEnumDescriptor< NetPlayerInfoRights>() {
return PlayerInfoRights_descriptor(); return NetPlayerInfoRights_descriptor();
} }
template <> template <>
inline const EnumDescriptor* GetEnumDescriptor< NetAvatarType>() { inline const EnumDescriptor* GetEnumDescriptor< NetAvatarType>() {
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -41,7 +41,7 @@ import de.pokerth.protocol.ProtoBuf.PokerTHMessage;
public class GameListTest extends TestBase { public class GameListTest extends TestBase {
protected void checkGameListNewMsg(int myId, GameListNewMessage gameListNew, NetGameMode mode, NetGameInfo gameInfo) { protected void checkGameListNewMsg(int myId, GameListNewMessage gameListNew, NetGameMode mode, NetGameInfo gameInfo) {
assertEquals(NetGameMode.gameCreated, gameListNew.getGameMode()); assertEquals(NetGameMode.netGameCreated, gameListNew.getGameMode());
assertTrue(!gameListNew.getIsPrivate()); assertTrue(!gameListNew.getIsPrivate());
assertEquals(myId, gameListNew.getAdminPlayerId()); assertEquals(myId, gameListNew.getAdminPlayerId());
NetGameInfo receivedGameInfo = gameListNew.getGameInfo(); NetGameInfo receivedGameInfo = gameListNew.getGameInfo();
@@ -86,7 +86,7 @@ public class GameListTest extends TestBase {
checkGameListNewMsg( checkGameListNewMsg(
myId, myId,
gameListNewMsg, gameListNewMsg,
NetGameMode.gameCreated, NetGameMode.netGameCreated,
gameInfo); gameInfo);
assertTrue(gameListNewMsg.getPlayerIdsCount() == 0); assertTrue(gameListNewMsg.getPlayerIdsCount() == 0);
@@ -124,7 +124,7 @@ public class GameListTest extends TestBase {
checkGameListNewMsg( checkGameListNewMsg(
myId, myId,
gameListNewMsg, gameListNewMsg,
NetGameMode.gameCreated, NetGameMode.netGameCreated,
gameInfo); gameInfo);
assertEquals(1, gameListNewMsg.getPlayerIdsCount()); assertEquals(1, gameListNewMsg.getPlayerIdsCount());
assertEquals(myId, gameListNewMsg.getPlayerIds(0)); assertEquals(myId, gameListNewMsg.getPlayerIds(0));
@@ -165,7 +165,7 @@ public class GameListTest extends TestBase {
failOnErrorMessage(msg); failOnErrorMessage(msg);
} while (!(msg.hasGameListUpdateMessage())); } while (!(msg.hasGameListUpdateMessage()));
assertEquals(NetGameMode.gameStarted, msg.getGameListUpdateMessage().getGameMode()); assertEquals(NetGameMode.netGameStarted, msg.getGameListUpdateMessage().getGameMode());
// Wait for player left messages. // Wait for player left messages.
for (int i = 0; i < 9; i++) { for (int i = 0; i < 9; i++) {
@@ -185,6 +185,6 @@ public class GameListTest extends TestBase {
failOnErrorMessage(msg); failOnErrorMessage(msg);
} while (!(msg.hasGameListUpdateMessage())); } while (!(msg.hasGameListUpdateMessage()));
assertEquals(NetGameMode.gameClosed, msg.getGameListUpdateMessage().getGameMode()); assertEquals(NetGameMode.netGameClosed, msg.getGameListUpdateMessage().getGameMode());
} }
} }
+1 -1
View File
@@ -134,7 +134,7 @@ public class LoadTest extends TestBase {
.setGameId(gameId[i / 10]) .setGameId(gameId[i / 10])
.setGameState(msg.getPlayersTurnMessage().getGameState()) .setGameState(msg.getPlayersTurnMessage().getGameState())
.setHandNum(handNum[i / 10]) .setHandNum(handNum[i / 10])
.setMyAction(NetPlayerAction.actionAllIn) .setMyAction(NetPlayerAction.netActionAllIn)
.setMyRelativeBet(0) .setMyRelativeBet(0)
.build(); .build();
PokerTHMessage outMsg = PokerTHMessage.newBuilder() PokerTHMessage outMsg = PokerTHMessage.newBuilder()
@@ -26,10 +26,10 @@ import java.util.Arrays;
import org.junit.Test; import org.junit.Test;
import de.pokerth.protocol.ProtoBuf.NetAvatarType; import de.pokerth.protocol.ProtoBuf.NetAvatarType;
import de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights;
import de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage; import de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage;
import de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData; import de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData;
import de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage; import de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage;
import de.pokerth.protocol.ProtoBuf.PlayerInfoRights;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage; import de.pokerth.protocol.ProtoBuf.PokerTHMessage;
import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType; import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType;
@@ -93,7 +93,7 @@ public class PlayerInfoTest extends TestBase {
assertEquals(GuestUser, info.getPlayerName()); assertEquals(GuestUser, info.getPlayerName());
assertFalse(info.hasCountryCode()); assertFalse(info.hasCountryCode());
assertTrue(info.getIsHuman()); assertTrue(info.getIsHuman());
assertEquals(PlayerInfoRights.playerRightsGuest, info.getPlayerRights()); assertEquals(NetPlayerInfoRights.netPlayerRightsGuest, info.getPlayerRights());
assertFalse(info.hasAvatarData()); assertFalse(info.hasAvatarData());
} }
// Request other players' info. // Request other players' info.
@@ -110,14 +110,14 @@ public class PlayerInfoTest extends TestBase {
assertEquals("test" + (i+1), info.getPlayerName()); assertEquals("test" + (i+1), info.getPlayerName());
assertFalse(info.hasCountryCode()); assertFalse(info.hasCountryCode());
assertTrue(info.getIsHuman()); assertTrue(info.getIsHuman());
assertEquals(PlayerInfoRights.playerRightsNormal, info.getPlayerRights()); assertEquals(NetPlayerInfoRights.netPlayerRightsNormal, info.getPlayerRights());
// Every second player has an avatar, see above. // Every second player has an avatar, see above.
if (i % 2 == 0) { if (i % 2 == 0) {
assertFalse(info.hasAvatarData()); assertFalse(info.hasAvatarData());
} else { } else {
assertTrue(info.hasAvatarData()); assertTrue(info.hasAvatarData());
assertTrue(Arrays.equals(info.getAvatarData().getAvatarHash().toByteArray(), avatarHash)); assertTrue(Arrays.equals(info.getAvatarData().getAvatarHash().toByteArray(), avatarHash));
assertEquals(NetAvatarType.avatarImagePng, info.getAvatarData().getAvatarType()); assertEquals(NetAvatarType.netAvatarImagePng, info.getAvatarData().getAvatarType());
} }
} }
// Request invalid player info. // Request invalid player info.
@@ -207,7 +207,7 @@ public class RunRankingGameTest extends TestBase {
.setGameId(gameId) .setGameId(gameId)
.setGameState(msg.getPlayersTurnMessage().getGameState()) .setGameState(msg.getPlayersTurnMessage().getGameState())
.setHandNum(handNum) .setHandNum(handNum)
.setMyAction(NetPlayerAction.actionAllIn) .setMyAction(NetPlayerAction.netActionAllIn)
.setMyRelativeBet(0) .setMyRelativeBet(0)
.build(); .build();
PokerTHMessage outMsg = PokerTHMessage.newBuilder() PokerTHMessage outMsg = PokerTHMessage.newBuilder()
@@ -228,7 +228,7 @@ public class RunRankingGameTest extends TestBase {
.setGameId(gameId) .setGameId(gameId)
.setGameState(inMsg.getPlayersTurnMessage().getGameState()) .setGameState(inMsg.getPlayersTurnMessage().getGameState())
.setHandNum(handNum) .setHandNum(handNum)
.setMyAction(NetPlayerAction.actionFold) .setMyAction(NetPlayerAction.netActionFold)
.setMyRelativeBet(0) .setMyRelativeBet(0)
.build(); .build();
PokerTHMessage outMsg = PokerTHMessage.newBuilder() PokerTHMessage outMsg = PokerTHMessage.newBuilder()
+4 -4
View File
@@ -131,7 +131,7 @@ public class SeatStateTest extends TestBase {
assertEquals(10, seatStates.size()); assertEquals(10, seatStates.size());
for (Iterator<NetPlayerState> it = seatStates.iterator(); it.hasNext(); ) { for (Iterator<NetPlayerState> it = seatStates.iterator(); it.hasNext(); ) {
NetPlayerState state = it.next(); NetPlayerState state = it.next();
assertEquals(NetPlayerState.playerStateNormal, state); assertEquals(NetPlayerState.netPlayerStateNormal, state);
} }
// All other players leave (and are in autofold state then). // All other players leave (and are in autofold state then).
for (int i = 0; i < 9; i++) { for (int i = 0; i < 9; i++) {
@@ -152,12 +152,12 @@ public class SeatStateTest extends TestBase {
int seatPos = 0; int seatPos = 0;
for (Iterator<NetPlayerState> it = seatStates.iterator(); it.hasNext(); ) { for (Iterator<NetPlayerState> it = seatStates.iterator(); it.hasNext(); ) {
NetPlayerState state = it.next(); NetPlayerState state = it.next();
assertTrue(NetPlayerState.playerStateNoMoney != state); assertTrue(NetPlayerState.netPlayerStateNoMoney != state);
if (NetPlayerState.playerStateNormal == state) { if (NetPlayerState.netPlayerStateNormal == state) {
assertEquals(firstPlayerPos, seatPos); assertEquals(firstPlayerPos, seatPos);
stateNormalCounter++; stateNormalCounter++;
} }
if (NetPlayerState.playerStateSessionInactive == state) { if (NetPlayerState.netPlayerStateSessionInactive == state) {
stateInactiveCounter++; stateInactiveCounter++;
} }
seatPos++; seatPos++;