@@ -8,25 +8,42 @@ import "ssl_gc_engine.proto";
8
8
9
9
import "google/protobuf/duration.proto" ;
10
10
11
+ // Message format that is pushed from the GC to the client
11
12
message Output {
13
+ // The current match state
12
14
optional State match_state = 1 ;
15
+ // The current GC state
13
16
optional GcState gc_state = 2 ;
17
+ // The protocol
14
18
optional Protocol protocol = 3 ;
15
19
}
16
20
21
+ // The game protocol
17
22
message Protocol {
23
+ // Is this a delta only?
24
+ // Entries that were already sent are not sent again, because the protocol is immutable anyway.
25
+ // But if the game is reset, the whole protocol must be replaced. That's what this flag is for.
18
26
optional bool delta = 1 ;
27
+ // The (delta) list of entries
19
28
repeated ProtocolEntry entry = 2 ;
20
29
}
21
30
31
+ // A protocol entry of a change
22
32
message ProtocolEntry {
33
+ // Id of the entry
23
34
optional int32 id = 1 ;
35
+ // The change that was made
24
36
optional Change change = 2 ;
37
+ // The match time elapsed when this change was made
25
38
optional google.protobuf.Duration match_time_elapsed = 3 ;
39
+ // The stage time elapsed when this change was made
26
40
optional google.protobuf.Duration stage_time_elapsed = 4 ;
27
41
}
28
42
43
+ // Message format that can be send from the client to the GC
29
44
message Input {
45
+ // A change to be enqueued into the GC engine
30
46
optional Change change = 1 ;
47
+ // Reset the match
31
48
optional bool reset_match = 2 ;
32
49
}
0 commit comments