replays expire after two weeks, lock can be toggled to prevent that

This commit is contained in:
Max-Wilhelm Bruker 2012-03-04 11:35:56 +01:00
parent a876a0bf5f
commit acb03c2bf2
15 changed files with 127 additions and 23 deletions

View file

@ -32,6 +32,7 @@ SET(PROTO_FILES
command_ready_start.proto
command_replay_list.proto
command_replay_download.proto
command_replay_modify_match.proto
command_reveal_cards.proto
command_roll_die.proto
command_set_active_phase.proto

View file

@ -0,0 +1,10 @@
import "session_commands.proto";
message Command_ReplayModifyMatch {
extend SessionCommand {
optional Command_ReplayModifyMatch ext = 1102;
}
optional sint32 game_id = 1 [default = -1];
optional bool do_not_hide = 2;
}

View file

@ -9,4 +9,5 @@ message ServerInfo_ReplayMatch {
optional uint32 length = 5;
optional string game_name = 6;
repeated string player_names = 7;
optional bool do_not_hide = 8;
}

View file

@ -18,6 +18,7 @@ message SessionCommand {
JOIN_ROOM = 1015;
REPLAY_LIST = 1100;
REPLAY_DOWNLOAD = 1101;
REPLAY_MODIFY_MATCH = 1102;
}
extensions 100 to max;
}