blob: 9d9efa42fa95820e8bf257c3040c47f252cc9203 [file] [log] [blame]
Sabina Leaver759090b2023-01-14 20:42:56 -08001namespace scouting.webserver.requests;
2
3table StartMatchAction {
4 position:int (id:0);
5}
6
7enum ObjectType: short {
8 kCube,
9 kCone
10}
11
12enum ScoreLevel: short {
13 kLow,
14 kMiddle,
15 kHigh
16}
17
18table PickupObjectAction {
19 object_type:ObjectType (id:0);
20 auto:bool (id:1);
21}
22
23table PlaceObjectAction {
24 object_type:ObjectType (id:0);
25 score_level:ScoreLevel (id:1);
26 auto:bool (id:2);
27}
28
29table RobotDeathAction {
30 robot_on:bool (id:0);
31}
32
33table EndMatchAction {
34}
35
36union ActionType {
37 StartMatchAction,
38 PickupObjectAction,
39 PlaceObjectAction,
40 RobotDeathAction,
41 EndMatchAction
42}
43
44table Action {
45 timestamp:int (id:0);
46 action_taken:ActionType (id:2);
47}
48
49table SubmitActions {
50 actions_list:[Action] (id:0);
51}
52
53root_type SubmitActions;