new protos

This commit is contained in:
RickyRister 2025-08-01 21:36:47 -07:00
parent f31d30bf84
commit a1076f9859
6 changed files with 33 additions and 0 deletions

View file

@ -37,6 +37,8 @@ set(PROTO_FILES
command_replay_list.proto command_replay_list.proto
command_replay_download.proto command_replay_download.proto
command_replay_modify_match.proto command_replay_modify_match.proto
command_replay_get_code.proto
command_replay_submit_code.proto
command_reveal_cards.proto command_reveal_cards.proto
command_reverse_turn.proto command_reverse_turn.proto
command_roll_die.proto command_roll_die.proto
@ -130,6 +132,7 @@ set(PROTO_FILES
response_password_salt.proto response_password_salt.proto
response_register.proto response_register.proto
response_replay_download.proto response_replay_download.proto
response_replay_get_code.proto
response_replay_list.proto response_replay_list.proto
response_viewlog_history.proto response_viewlog_history.proto
response_warn_history.proto response_warn_history.proto

View file

@ -0,0 +1,9 @@
syntax = "proto2";
import "session_commands.proto";
message Command_ReplayGetCode {
extend SessionCommand {
optional Command_ReplayGetCode ext = 1104;
}
optional sint32 game_id = 1 [default = -1];
}

View file

@ -0,0 +1,9 @@
syntax = "proto2";
import "session_commands.proto";
message Command_ReplaySubmitCode {
extend SessionCommand {
optional Command_ReplaySubmitCode ext = 1105;
}
optional string replay_code = 1;
}

View file

@ -65,6 +65,7 @@ message Response {
GET_ADMIN_NOTES = 1018; GET_ADMIN_NOTES = 1018;
REPLAY_LIST = 1100; REPLAY_LIST = 1100;
REPLAY_DOWNLOAD = 1101; REPLAY_DOWNLOAD = 1101;
REPLAY_GET_CODE = 1102;
} }
required uint64 cmd_id = 1; required uint64 cmd_id = 1;
optional ResponseCode response_code = 2; optional ResponseCode response_code = 2;

View file

@ -0,0 +1,9 @@
syntax = "proto2";
import "response.proto";
message Response_ReplayGetCode {
extend Response {
optional Response_ReplayGetCode ext = 1102;
}
optional string replay_code = 1;
}

View file

@ -31,6 +31,8 @@ message SessionCommand {
REPLAY_DOWNLOAD = 1101; REPLAY_DOWNLOAD = 1101;
REPLAY_MODIFY_MATCH = 1102; REPLAY_MODIFY_MATCH = 1102;
REPLAY_DELETE_MATCH = 1103; REPLAY_DELETE_MATCH = 1103;
REPLAY_GET_CODE = 1104;
REPLAY_SUBMIT_CODE = 1105;
} }
extensions 100 to max; extensions 100 to max;
} }