Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
response.proto
Go to the documentation of this file.
1syntax = "proto2";
2
4
11message Response {
12
13 // Outcome of the command sent by the client
15 RespNotConnected = -1; // Client is not connected or session expired
16 RespNothing = 0; // No response required
17 RespOk = 1; // Command succeeded
18 RespNotInRoom = 2; // Client is not in the room for this command
19 RespInternalError = 3; // Server encountered an unexpected error
20 RespInvalidCommand = 4; // Command was invalid or unrecognized
21 RespInvalidData = 5; // Command data was invalid or malformed
22 RespNameNotFound = 6; // Target user not found
23 RespLoginNeeded = 7; // Client must log in first
24 RespFunctionNotAllowed = 8; // Client tried to perform a restricted action
25 RespGameNotStarted = 9; // Game has not started yet
26 RespGameFull = 10; // Game is full
27 RespContextError = 11; // Context (room/game) mismatch
28 RespWrongPassword = 12; // Password for this room or game is incorrect
29 RespSpectatorsNotAllowed = 13; // Spectators are not allowed in this room/game
30 RespOnlyBuddies = 14; // Only buddies can perform this action
31 RespUserLevelTooLow = 15; // User’s permission level is insufficient
32 RespInIgnoreList = 16; // Target user has ignored the client
33 RespWouldOverwriteOldSession = 17; // Would overwrite an existing session
34 RespChatFlood = 18; // Too many messages sent in short time
35 RespUserIsBanned = 19; // Client is banned
36 RespAccessDenied = 20; // Access to this action is denied
37 RespUsernameInvalid = 21; // Username is invalid
38 RespRegistrationRequired = 22; // Registration is required
39 RespRegistrationAccepted = 23; // Server agrees to process client's registration request
40 RespUserAlreadyExists = 24; // Client attempted to register a name which is already registered
41 RespEmailRequiredToRegister = 25; // Server requires email to register accounts but client did not provide one
42 RespTooManyRequests = 26; // Server refused to complete command because client has sent too many too quickly
43 RespPasswordTooShort = 27; // Server requires a decent password
45 28; // Client attempted to log into a registered username but the account hasn't been activated
46 RespRegistrationDisabled = 29; // Server does not allow clients to register
47 RespRegistrationFailed = 30; // Server accepted a reg request but failed to perform the registration
48 RespActivationAccepted = 31; // Server accepted a reg user activation token
49 RespActivationFailed = 32; // Server didn't accept a reg user activation token
51 33; // Server accepted client registration, but it will need token activation
52 RespClientIdRequired = 34; // Server requires client to generate and send its client id before allowing access
53 RespClientUpdateRequired = 35; // Client is missing features that the server is requiring
54 RespServerFull = 36; // Server user limit reached
55 RespEmailBlackListed = 37; // Server has blocked the email address provided for registration for some reason
56 RespPasswordChangeRequired = 38; // Server requires the user to change their password before proceeding
57 }
58
59 // Type of response, used to route handling on the client
61 JOIN_ROOM = 1000; // Response for joining a room
62 LIST_USERS = 1001; // Response listing users
63 GET_GAMES_OF_USER = 1002; // Response with user's games
64 GET_USER_INFO = 1003; // Response with user info
65 DUMP_ZONE = 1004; // Response with zone dump
66 LOGIN = 1005; // Response to login attempt
67 DECK_LIST = 1006; // Response with deck list
68 DECK_DOWNLOAD = 1007; // Response for deck download
69 DECK_UPLOAD = 1008; // Response for deck upload
70 REGISTER = 1009; // Response to registration
71 ACTIVATE = 1010; // Response to activation
72 ADJUST_MOD = 1011; // Response to mod adjustments
73 BAN_HISTORY = 1012; // Response with ban history
74 WARN_HISTORY = 1013; // Response with warn history
75 WARN_LIST = 1014; // Response with current warnings
76 VIEW_LOG = 1015; // Response with logs
77 FORGOT_PASSWORD_REQUEST = 1016; // Response to password reset request
78 PASSWORD_SALT = 1017; // Response containing password salt
79 GET_ADMIN_NOTES = 1018; // Response with admin notes
80 REPLAY_LIST = 1100; // Response listing replays
81 REPLAY_DOWNLOAD = 1101; // Response for replay download
82 REPLAY_GET_CODE = 1102; // Response containing replay code
83 CARD_ART_RULE_LIST = 1200; // Response containing a list of card art rules
84 }
86 required uint64 cmd_id = 1; // Command ID that this response corresponds to
87 optional ResponseCode response_code = 2; // Outcome code of the command
88
89 extensions 100 to max; // Protobuf extensions reserved for future use
90}
syntax
Definition admin_commands.proto:1
Definition response.proto:11
ResponseCode
Definition response.proto:14
@ RespRegistrationRequired
Registration is required.
Definition response.proto:38
@ RespActivationAccepted
Server accepted a reg user activation token.
Definition response.proto:48
@ RespWouldOverwriteOldSession
Would overwrite an existing session.
Definition response.proto:33
@ RespContextError
Context (room/game) mismatch.
Definition response.proto:27
@ RespEmailBlackListed
Server has blocked the email address provided for registration for some reason.
Definition response.proto:55
@ RespRegistrationDisabled
Server does not allow clients to register.
Definition response.proto:46
@ RespInvalidCommand
Command was invalid or unrecognized.
Definition response.proto:20
@ RespOk
Command succeeded.
Definition response.proto:17
@ RespEmailRequiredToRegister
Server requires email to register accounts but client did not provide one.
Definition response.proto:41
@ RespInIgnoreList
Target user has ignored the client.
Definition response.proto:32
@ RespOnlyBuddies
Only buddies can perform this action.
Definition response.proto:30
@ RespFunctionNotAllowed
Client tried to perform a restricted action.
Definition response.proto:24
@ RespTooManyRequests
Server refused to complete command because client has sent too many too quickly.
Definition response.proto:42
@ RespPasswordChangeRequired
Server requires the user to change their password before proceeding.
Definition response.proto:56
@ RespUsernameInvalid
Username is invalid.
Definition response.proto:37
@ RespInvalidData
Command data was invalid or malformed.
Definition response.proto:21
@ RespNotConnected
Client is not connected or session expired.
Definition response.proto:15
@ RespRegistrationAcceptedNeedsActivation
Server accepted client registration, but it will need token activation.
Definition response.proto:50
@ RespWrongPassword
Password for this room or game is incorrect.
Definition response.proto:28
@ RespInternalError
Server encountered an unexpected error.
Definition response.proto:19
@ RespUserIsBanned
Client is banned.
Definition response.proto:35
@ RespGameFull
Game is full.
Definition response.proto:26
@ RespLoginNeeded
Client must log in first.
Definition response.proto:23
@ RespUserLevelTooLow
User’s permission level is insufficient.
Definition response.proto:31
@ RespClientUpdateRequired
Client is missing features that the server is requiring.
Definition response.proto:53
@ RespSpectatorsNotAllowed
Spectators are not allowed in this room/game.
Definition response.proto:29
@ RespNameNotFound
Target user not found.
Definition response.proto:22
@ RespRegistrationFailed
Server accepted a reg request but failed to perform the registration.
Definition response.proto:47
@ RespClientIdRequired
Server requires client to generate and send its client id before allowing access.
Definition response.proto:52
@ RespGameNotStarted
Game has not started yet.
Definition response.proto:25
@ RespChatFlood
Too many messages sent in short time.
Definition response.proto:34
@ RespNothing
No response required.
Definition response.proto:16
@ RespRegistrationAccepted
Server agrees to process client's registration request.
Definition response.proto:39
@ RespAccessDenied
Access to this action is denied.
Definition response.proto:36
@ RespActivationFailed
Server didn't accept a reg user activation token.
Definition response.proto:49
@ RespServerFull
Server user limit reached.
Definition response.proto:54
@ RespAccountNotActivated
Client attempted to log into a registered username but the account hasn't been activated.
Definition response.proto:44
@ RespNotInRoom
Client is not in the room for this command.
Definition response.proto:18
@ RespPasswordTooShort
Server requires a decent password.
Definition response.proto:43
@ RespUserAlreadyExists
Client attempted to register a name which is already registered.
Definition response.proto:40
optional ResponseCode response_code
Outcome code of the command.
Definition response.proto:86
ResponseType
Definition response.proto:60
@ ADJUST_MOD
Response to mod adjustments.
Definition response.proto:72
@ LOGIN
Response to login attempt.
Definition response.proto:66
@ LIST_USERS
Response listing users.
Definition response.proto:62
@ GET_USER_INFO
Response with user info.
Definition response.proto:64
@ ACTIVATE
Response to activation.
Definition response.proto:71
@ REPLAY_LIST
Response listing replays.
Definition response.proto:80
@ WARN_LIST
Response with current warnings.
Definition response.proto:75
@ REGISTER
Response to registration.
Definition response.proto:70
@ FORGOT_PASSWORD_REQUEST
Response to password reset request.
Definition response.proto:77
@ BAN_HISTORY
Response with ban history.
Definition response.proto:73
@ JOIN_ROOM
Response for joining a room.
Definition response.proto:61
@ REPLAY_GET_CODE
Response containing replay code.
Definition response.proto:82
@ DECK_UPLOAD
Response for deck upload.
Definition response.proto:69
@ CARD_ART_RULE_LIST
Response containing a list of card art rules.
Definition response.proto:83
@ DUMP_ZONE
Response with zone dump.
Definition response.proto:65
@ REPLAY_DOWNLOAD
Response for replay download.
Definition response.proto:81
@ GET_ADMIN_NOTES
Response with admin notes.
Definition response.proto:79
@ DECK_LIST
Response with deck list.
Definition response.proto:67
@ DECK_DOWNLOAD
Response for deck download.
Definition response.proto:68
@ WARN_HISTORY
Response with warn history.
Definition response.proto:74
@ VIEW_LOG
Response with logs.
Definition response.proto:76
@ GET_GAMES_OF_USER
Response with user's games.
Definition response.proto:63
@ PASSWORD_SALT
Response containing password salt.
Definition response.proto:78
required uint64 cmd_id
Command ID that this response corresponds to.
Definition response.proto:85
extensions to max
Protobuf extensions reserved for future use.
Definition response.proto:87