forked from RoboCup-SSL/ssl-game-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathssl_gc_engine_config.proto
55 lines (46 loc) · 1.59 KB
/
ssl_gc_engine_config.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
syntax = "proto2";
option go_package = "github.com/RoboCup-SSL/ssl-game-controller/internal/app/engine";
// The engine config
message Config {
// The behavior for each game event
map<string, Behavior> game_event_behavior = 1;
// The config for each auto referee
map<string, AutoRefConfig> auto_ref_configs = 2;
// The selected tracker source
optional string active_tracker_source = 3;
// The list of available teams
repeated string teams = 4;
// Enable or disable auto continuation
optional bool auto_continue = 5;
// Behaviors for each game event
enum Behavior {
// Not set or unknown
BEHAVIOR_UNKNOWN = 0;
// Always accept the game event
BEHAVIOR_ACCEPT = 1;
// Accept the game event if was reported by a majority
BEHAVIOR_ACCEPT_MAJORITY = 2;
// Only propose the game event (can be accepted in the UI by a human)
BEHAVIOR_PROPOSE_ONLY = 3;
// Only log the game event to the protocol
BEHAVIOR_LOG = 4;
// Silently ignore the game event
BEHAVIOR_IGNORE = 5;
}
}
// The config for an auto referee
message AutoRefConfig {
// The game event behaviors for this auto referee
map<string, Behavior> game_event_behavior = 1;
// Behaviors for the game events reported by this auto referee
enum Behavior {
// Not set or unknown
BEHAVIOR_UNKNOWN = 0;
// Accept the game event
BEHAVIOR_ACCEPT = 1;
// Log the game event
BEHAVIOR_LOG = 2;
// Silently ignore the game event
BEHAVIOR_IGNORE = 3;
}
}