Preparing network protocol for rejoin.

This commit is contained in:
lotodore
2011-07-16 14:52:45 +00:00
parent 711091bcd9
commit e109c0037d
303 changed files with 8477 additions and 7528 deletions
+28 -4
View File
@@ -96,6 +96,7 @@ AnnounceMessage ::= [APPLICATION 0] SEQUENCE {
InitMessage ::= [APPLICATION 1] SEQUENCE {
requestedVersion Version,
buildId INTEGER,
myLastSessionId Guid,
login CHOICE {
guestLogin [0] GuestLogin,
authenticatedLogin [1] AuthenticatedLogin,
@@ -144,7 +145,8 @@ AuthServerVerification ::= SEQUENCE {
InitAckMessage ::= [APPLICATION 3] SEQUENCE {
yourSessionId Guid,
yourPlayerId NonZeroId,
yourAvatar AvatarHash OPTIONAL
yourAvatar AvatarHash OPTIONAL,
rejoinGameId NonZeroId OPTIONAL
}
AvatarRequestMessage ::= [APPLICATION 4] SEQUENCE {
@@ -279,7 +281,8 @@ SubscriptionRequestMessage ::= [APPLICATION 10] SEQUENCE {
JoinGameRequestMessage ::= [APPLICATION 11] SEQUENCE {
joinGameAction CHOICE {
joinExistingGame [0] JoinExistingGame,
joinNewGame [1] JoinNewGame
joinNewGame [1] JoinNewGame,
rejoinExistingGame [2] RejoinExistingGame
},
password UTF8String (SIZE(1..64)) OPTIONAL,
autoLeave BOOLEAN
@@ -293,6 +296,10 @@ JoinNewGame ::= SEQUENCE {
gameInfo NetGameInfo
}
RejoinExistingGame ::= SEQUENCE {
gameId NonZeroId
}
JoinGameReplyMessage ::= [APPLICATION 12] SEQUENCE {
gameId NonZeroId,
joinGameResult CHOICE {
@@ -317,7 +324,8 @@ JoinGameFailed ::= SEQUENCE {
gameNameInUse (7),
badGameName (8),
invalidSettings (9),
ipAddressBlocked (10)
ipAddressBlocked (10),
rejoinFailed (11)
}
}
@@ -432,10 +440,26 @@ StartEventAckMessage ::= [APPLICATION 21] SEQUENCE {
gameId NonZeroId
}
RejoinPlayerData ::= SEQUENCE {
playerId NonZeroId,
playerMoney INTEGER(0..10000000)
}
GameStartModeInitial ::= SEQUENCE {
playerSeats SEQUENCE SIZE(2..10) OF NonZeroId
}
GameStartModeRejoin ::= SEQUENCE {
rejoinPlayerData SEQUENCE SIZE(2..10) OF RejoinPlayerData
}
GameStartMessage ::= [APPLICATION 22] SEQUENCE {
gameId NonZeroId,
startDealerPlayerId NonZeroId,
playerSeats SEQUENCE SIZE(2..10) OF NonZeroId
gameStartMode CHOICE {
gameStartModeInitial [0] GameStartModeInitial,
gameStartModeRejoin [1] GameStartModeRejoin
}
}
PlainCards ::= SEQUENCE {