Adding missing asn.1 stuff.
This commit is contained in:
+41
-23
@@ -55,6 +55,8 @@ PokerTHMessage ::= CHOICE {
|
|||||||
chatRequestMessage ChatRequestMessage,
|
chatRequestMessage ChatRequestMessage,
|
||||||
chatMessage ChatMessage,
|
chatMessage ChatMessage,
|
||||||
dialogMessage DialogMessage,
|
dialogMessage DialogMessage,
|
||||||
|
timeoutWarningMessage TimeoutWarningMessage,
|
||||||
|
resetTimeoutMessage ResetTimeoutMessage,
|
||||||
errorMessage ErrorMessage
|
errorMessage ErrorMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +111,7 @@ AvatarReplyMessage ::= [APPLICATION 3] SEQUENCE {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AvatarHeader ::= SEQUENCE {
|
AvatarHeader ::= SEQUENCE {
|
||||||
avatarType AvatarType,
|
avatarType NetAvatarType,
|
||||||
avatarSize INTEGER(32..30720)
|
avatarSize INTEGER(32..30720)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -125,10 +127,10 @@ UnknownAvatar ::= SEQUENCE {
|
|||||||
|
|
||||||
AvatarHash ::= OCTET STRING (SIZE(20)) -- sha-1 hash value
|
AvatarHash ::= OCTET STRING (SIZE(20)) -- sha-1 hash value
|
||||||
|
|
||||||
AvatarType ::= ENUMERATED {
|
NetAvatarType ::= ENUMERATED {
|
||||||
imagePng (1),
|
avatarImagePng (1),
|
||||||
imageJpg (2),
|
avatarImageJpg (2),
|
||||||
imageGif (3)
|
avatarImageGif (3)
|
||||||
}
|
}
|
||||||
|
|
||||||
GameListMessage ::= [APPLICATION 4] SEQUENCE {
|
GameListMessage ::= [APPLICATION 4] SEQUENCE {
|
||||||
@@ -143,15 +145,15 @@ GameListMessage ::= [APPLICATION 4] SEQUENCE {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GameListNew ::= SEQUENCE {
|
GameListNew ::= SEQUENCE {
|
||||||
gameMode GameMode,
|
gameMode NetGameMode,
|
||||||
isPrivate BOOLEAN,
|
isPrivate BOOLEAN,
|
||||||
playerIds SEQUENCE SIZE(1..10) OF NonZeroId,
|
playerIds SEQUENCE SIZE(1..10) OF NonZeroId,
|
||||||
adminPlayerId NonZeroId,
|
adminPlayerId NonZeroId,
|
||||||
gameInfo GameInfo
|
gameInfo NetGameInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
GameListUpdate ::= SEQUENCE {
|
GameListUpdate ::= SEQUENCE {
|
||||||
gameMode GameMode
|
gameMode NetGameMode
|
||||||
}
|
}
|
||||||
|
|
||||||
GameListPlayerJoined ::= SEQUENCE {
|
GameListPlayerJoined ::= SEQUENCE {
|
||||||
@@ -166,7 +168,7 @@ GameListAdminChanged ::= SEQUENCE {
|
|||||||
newAdminPlayerId NonZeroId
|
newAdminPlayerId NonZeroId
|
||||||
}
|
}
|
||||||
|
|
||||||
GameMode ::= ENUMERATED {
|
NetGameMode ::= ENUMERATED {
|
||||||
gameCreated (1),
|
gameCreated (1),
|
||||||
gameStarted (2),
|
gameStarted (2),
|
||||||
gameClosed (3)
|
gameClosed (3)
|
||||||
@@ -188,7 +190,7 @@ PlayerInfoData ::= SEQUENCE {
|
|||||||
playerName UTF8String,
|
playerName UTF8String,
|
||||||
isHuman BOOLEAN,
|
isHuman BOOLEAN,
|
||||||
avatarData SEQUENCE {
|
avatarData SEQUENCE {
|
||||||
avatarType AvatarType,
|
avatarType NetAvatarType,
|
||||||
avatar AvatarHash
|
avatar AvatarHash
|
||||||
} OPTIONAL
|
} OPTIONAL
|
||||||
}
|
}
|
||||||
@@ -219,7 +221,7 @@ JoinExistingGame ::= SEQUENCE {
|
|||||||
}
|
}
|
||||||
|
|
||||||
JoinNewGame ::= SEQUENCE {
|
JoinNewGame ::= SEQUENCE {
|
||||||
gameInfo GameInfo
|
gameInfo NetGameInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
JoinGameReplyMessage ::= [APPLICATION 9] SEQUENCE {
|
JoinGameReplyMessage ::= [APPLICATION 9] SEQUENCE {
|
||||||
@@ -232,7 +234,7 @@ JoinGameReplyMessage ::= [APPLICATION 9] SEQUENCE {
|
|||||||
|
|
||||||
JoinGameAck ::= SEQUENCE {
|
JoinGameAck ::= SEQUENCE {
|
||||||
areYouAdmin BOOLEAN,
|
areYouAdmin BOOLEAN,
|
||||||
gameInfo GameInfo
|
gameInfo NetGameInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
JoinGameFailed ::= SEQUENCE {
|
JoinGameFailed ::= SEQUENCE {
|
||||||
@@ -244,7 +246,7 @@ JoinGameFailed ::= SEQUENCE {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GameInfo ::= SEQUENCE {
|
NetGameInfo ::= SEQUENCE {
|
||||||
gameName UTF8String,
|
gameName UTF8String,
|
||||||
maxNumPlayers INTEGER(2..10),
|
maxNumPlayers INTEGER(2..10),
|
||||||
raiseIntervalMode CHOICE {
|
raiseIntervalMode CHOICE {
|
||||||
@@ -279,7 +281,12 @@ GamePlayerJoined ::= SEQUENCE {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GamePlayerLeft ::= SEQUENCE {
|
GamePlayerLeft ::= SEQUENCE {
|
||||||
playerId NonZeroId
|
playerId NonZeroId,
|
||||||
|
gamePlayerLeftReason ENUMERATED {
|
||||||
|
leftOnRequest (0),
|
||||||
|
leftKicked (1),
|
||||||
|
leftError (2)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GameAdminChanged ::= SEQUENCE {
|
GameAdminChanged ::= SEQUENCE {
|
||||||
@@ -329,20 +336,20 @@ HandStartMessage ::= [APPLICATION 16] SEQUENCE {
|
|||||||
PlayersTurnMessage ::= [APPLICATION 17] SEQUENCE {
|
PlayersTurnMessage ::= [APPLICATION 17] SEQUENCE {
|
||||||
gameId NonZeroId,
|
gameId NonZeroId,
|
||||||
playerId NonZeroId,
|
playerId NonZeroId,
|
||||||
gameState GameState
|
gameState NetGameState
|
||||||
}
|
}
|
||||||
|
|
||||||
MyActionRequestMessage ::= [APPLICATION 18] SEQUENCE {
|
MyActionRequestMessage ::= [APPLICATION 18] SEQUENCE {
|
||||||
gameId NonZeroId,
|
gameId NonZeroId,
|
||||||
gameState GameState,
|
gameState NetGameState,
|
||||||
myAction PlayerAction,
|
myAction NetPlayerAction,
|
||||||
myRelativeBet INTEGER(0..10000000)
|
myRelativeBet INTEGER(0..10000000)
|
||||||
}
|
}
|
||||||
|
|
||||||
YourActionRejectedMessage ::= [APPLICATION 19] SEQUENCE {
|
YourActionRejectedMessage ::= [APPLICATION 19] SEQUENCE {
|
||||||
gameId NonZeroId,
|
gameId NonZeroId,
|
||||||
gameState GameState,
|
gameState NetGameState,
|
||||||
yourAction PlayerAction,
|
yourAction NetPlayerAction,
|
||||||
yourRelativeBet INTEGER(0..10000000),
|
yourRelativeBet INTEGER(0..10000000),
|
||||||
rejectionReason ENUMERATED {
|
rejectionReason ENUMERATED {
|
||||||
rejectedInvalidGameState (1),
|
rejectedInvalidGameState (1),
|
||||||
@@ -354,8 +361,8 @@ YourActionRejectedMessage ::= [APPLICATION 19] SEQUENCE {
|
|||||||
PlayersActionDoneMessage ::= [APPLICATION 20] SEQUENCE {
|
PlayersActionDoneMessage ::= [APPLICATION 20] SEQUENCE {
|
||||||
gameId NonZeroId,
|
gameId NonZeroId,
|
||||||
playerId NonZeroId,
|
playerId NonZeroId,
|
||||||
gameState GameState,
|
gameState NetGameState,
|
||||||
playerAction PlayerAction,
|
playerAction NetPlayerAction,
|
||||||
totalPlayerBet INTEGER(0..10000000),
|
totalPlayerBet INTEGER(0..10000000),
|
||||||
playerMoney INTEGER(0..10000000),
|
playerMoney INTEGER(0..10000000),
|
||||||
highestSet INTEGER(0..10000000),
|
highestSet INTEGER(0..10000000),
|
||||||
@@ -445,6 +452,17 @@ DialogMessage ::= [APPLICATION 131] SEQUENCE {
|
|||||||
notificationText UTF8String
|
notificationText UTF8String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TimeoutWarningMessage ::= [APPLICATION 132] SEQUENCE {
|
||||||
|
timeoutReason ENUMERATED {
|
||||||
|
timeoutNoDataReceived (0),
|
||||||
|
timeoutInactiveGame (1)
|
||||||
|
},
|
||||||
|
remainingSeconds INTEGER
|
||||||
|
}
|
||||||
|
|
||||||
|
ResetTimeoutMessage ::= [APPLICATION 133] SEQUENCE {
|
||||||
|
}
|
||||||
|
|
||||||
ErrorMessage ::= [APPLICATION 255] SEQUENCE {
|
ErrorMessage ::= [APPLICATION 255] SEQUENCE {
|
||||||
errorReason ENUMERATED {
|
errorReason ENUMERATED {
|
||||||
errorReserved (0),
|
errorReserved (0),
|
||||||
@@ -464,7 +482,7 @@ ErrorMessage ::= [APPLICATION 255] SEQUENCE {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GameState ::= ENUMERATED {
|
NetGameState ::= ENUMERATED {
|
||||||
statePreflop (0),
|
statePreflop (0),
|
||||||
stateFlop (1),
|
stateFlop (1),
|
||||||
stateTurn (2),
|
stateTurn (2),
|
||||||
@@ -473,7 +491,7 @@ GameState ::= ENUMERATED {
|
|||||||
statePreflopBigBlind (5)
|
statePreflopBigBlind (5)
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerAction ::= ENUMERATED {
|
NetPlayerAction ::= ENUMERATED {
|
||||||
actionNone (0),
|
actionNone (0),
|
||||||
actionFold (1),
|
actionFold (1),
|
||||||
actionCheck (2),
|
actionCheck (2),
|
||||||
|
|||||||
Reference in New Issue
Block a user