server-side replay support

This commit is contained in:
Max-Wilhelm Bruker 2012-02-20 22:13:48 +01:00
parent 7cec442694
commit d50d179b2f
13 changed files with 177 additions and 89 deletions

View file

@ -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

View file

@ -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;
}

View 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;
}

View file

@ -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;
}