mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
server-side replay support
This commit is contained in:
parent
7cec442694
commit
d50d179b2f
13 changed files with 177 additions and 89 deletions
|
|
@ -95,6 +95,7 @@ SET(PROTO_FILES
|
|||
game_event_container.proto
|
||||
game_event_context.proto
|
||||
game_event.proto
|
||||
game_replay.proto
|
||||
moderator_commands.proto
|
||||
move_card_to_zone.proto
|
||||
response_deck_download.proto
|
||||
|
|
|
|||
|
|
@ -5,4 +5,5 @@ message GameEventContainer {
|
|||
optional uint32 game_id = 1;
|
||||
repeated GameEvent event_list = 2;
|
||||
optional GameEventContext context = 3;
|
||||
optional uint32 seconds_elapsed = 4;
|
||||
}
|
||||
|
|
|
|||
7
common/pb/game_replay.proto
Normal file
7
common/pb/game_replay.proto
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import "serverinfo_game.proto";
|
||||
import "game_event_container.proto";
|
||||
|
||||
message GameReplay {
|
||||
optional ServerInfo_Game game_info = 1;
|
||||
repeated GameEventContainer event_list = 2;
|
||||
}
|
||||
|
|
@ -15,4 +15,5 @@ message ServerInfo_Game {
|
|||
optional bool spectators_allowed = 12;
|
||||
optional bool spectators_need_password = 13;
|
||||
optional uint32 spectators_count = 14;
|
||||
optional uint32 start_time = 15;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue