![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Public Attributes | |
| required uint64 | cmd_id = 1 |
| Command ID that this response corresponds to. | |
| optional ResponseCode | response_code = 2 |
| Outcome code of the command. | |
| extensions to | max |
| Protobuf extensions reserved for future use. | |
/ Server response envelope linking to a command This struct is sent immediately after a client command, using the same cmd_id to connect the response to the command::
Responses may contain standard outcome codes (ResponseCode) and indicate what type of response the server is sending (ResponseType)::
Outcome of the command sent by the client
| Enumerator | |
|---|---|
| RespNotConnected | Client is not connected or session expired. |
| RespNothing | No response required. |
| RespOk | Command succeeded. |
| RespNotInRoom | Client is not in the room for this command. |
| RespInternalError | Server encountered an unexpected error. |
| RespInvalidCommand | Command was invalid or unrecognized. |
| RespInvalidData | Command data was invalid or malformed. |
| RespNameNotFound | Target user not found. |
| RespLoginNeeded | Client must log in first. |
| RespFunctionNotAllowed | Client tried to perform a restricted action. |
| RespGameNotStarted | Game has not started yet. |
| RespGameFull | Game is full. |
| RespContextError | Context (room/game) mismatch. |
| RespWrongPassword | Password for this room or game is incorrect. |
| RespSpectatorsNotAllowed | Spectators are not allowed in this room/game. |
| RespOnlyBuddies | Only buddies can perform this action. |
| RespUserLevelTooLow | User’s permission level is insufficient. |
| RespInIgnoreList | Target user has ignored the client. |
| RespWouldOverwriteOldSession | Would overwrite an existing session. |
| RespChatFlood | Too many messages sent in short time. |
| RespUserIsBanned | Client is banned. |
| RespAccessDenied | Access to this action is denied. |
| RespUsernameInvalid | Username is invalid. |
| RespRegistrationRequired | Registration is required. |
| RespRegistrationAccepted | Server agrees to process client's registration request. |
| RespUserAlreadyExists | Client attempted to register a name which is already registered. |
| RespEmailRequiredToRegister | Server requires email to register accounts but client did not provide one. |
| RespTooManyRequests | Server refused to complete command because client has sent too many too quickly. |
| RespPasswordTooShort | Server requires a decent password. |
| RespAccountNotActivated | Client attempted to log into a registered username but the account hasn't been activated. |
| RespRegistrationDisabled | Server does not allow clients to register. |
| RespRegistrationFailed | Server accepted a reg request but failed to perform the registration. |
| RespActivationAccepted | Server accepted a reg user activation token. |
| RespActivationFailed | Server didn't accept a reg user activation token. |
| RespRegistrationAcceptedNeedsActivation | Server accepted client registration, but it will need token activation. |
| RespClientIdRequired | Server requires client to generate and send its client id before allowing access. |
| RespClientUpdateRequired | Client is missing features that the server is requiring. |
| RespServerFull | Server user limit reached. |
| RespEmailBlackListed | Server has blocked the email address provided for registration for some reason. |
| RespPasswordChangeRequired | Server requires the user to change their password before proceeding. |
Type of response, used to route handling on the client
| Enumerator | |
|---|---|
| JOIN_ROOM | Response for joining a room. |
| LIST_USERS | Response listing users. |
| GET_GAMES_OF_USER | Response with user's games. |
| GET_USER_INFO | Response with user info. |
| DUMP_ZONE | Response with zone dump. |
| LOGIN | Response to login attempt. |
| DECK_LIST | Response with deck list. |
| DECK_DOWNLOAD | Response for deck download. |
| DECK_UPLOAD | Response for deck upload. |
| REGISTER | Response to registration. |
| ACTIVATE | Response to activation. |
| ADJUST_MOD | Response to mod adjustments. |
| BAN_HISTORY | Response with ban history. |
| WARN_HISTORY | Response with warn history. |
| WARN_LIST | Response with current warnings. |
| VIEW_LOG | Response with logs. |
| FORGOT_PASSWORD_REQUEST | Response to password reset request. |
| PASSWORD_SALT | Response containing password salt. |
| GET_ADMIN_NOTES | Response with admin notes. |
| REPLAY_LIST | Response listing replays. |
| REPLAY_DOWNLOAD | Response for replay download. |
| REPLAY_GET_CODE | Response containing replay code. |
| CARD_ART_RULE_LIST | Response containing a list of card art rules. |
| required uint64 Response::cmd_id = 1 |
Command ID that this response corresponds to.
| extensions to Response::max |
Protobuf extensions reserved for future use.
| optional ResponseCode Response::response_code = 2 |
Outcome code of the command.