mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
Replays split up, one for each subgame
This commit is contained in:
parent
4dc712286f
commit
8481e61e8f
15 changed files with 278 additions and 119 deletions
|
|
@ -126,6 +126,7 @@ SET(PROTO_FILES
|
|||
serverinfo_playerproperties.proto
|
||||
serverinfo_player.proto
|
||||
serverinfo_replay.proto
|
||||
serverinfo_replay_match.proto
|
||||
serverinfo_room.proto
|
||||
serverinfo_user.proto
|
||||
serverinfo_zone.proto
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ message Command_ReplayDownload {
|
|||
extend SessionCommand {
|
||||
optional Command_ReplayDownload ext = 1101;
|
||||
}
|
||||
optional sint32 game_id = 1 [default = -1];
|
||||
optional sint32 replay_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,4 +4,5 @@ import "game_event_container.proto";
|
|||
message GameReplay {
|
||||
optional ServerInfo_Game game_info = 1;
|
||||
repeated GameEventContainer event_list = 2;
|
||||
optional uint32 duration_seconds = 3;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import "response.proto";
|
||||
import "serverinfo_replay.proto";
|
||||
import "serverinfo_replay_match.proto";
|
||||
|
||||
message Response_ReplayList {
|
||||
extend Response {
|
||||
optional Response_ReplayList ext = 1100;
|
||||
}
|
||||
repeated ServerInfo_Replay replay_list = 1;
|
||||
repeated ServerInfo_ReplayMatch match_list = 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
message ServerInfo_Replay {
|
||||
optional sint32 game_id = 1 [default = -1];
|
||||
optional string room_name = 2;
|
||||
optional uint32 time_started = 3;
|
||||
optional uint32 length = 4;
|
||||
optional string game_name = 5;
|
||||
optional string replay_name = 6;
|
||||
repeated string player_names = 7;
|
||||
optional sint32 replay_id = 1 [default = -1];
|
||||
optional string replay_name = 2;
|
||||
optional uint32 duration = 3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue