blob: 863e2fc3023dd1c3ebc481be3813edbac460a2f3 [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 {
Filip Kujawa5877c692023-02-20 20:58:14 -080034 docked:bool (id:0);
35 engaged:bool (id:1);
Sabina Leaver759090b2023-01-14 20:42:56 -080036}
37
38union ActionType {
39 StartMatchAction,
40 PickupObjectAction,
41 PlaceObjectAction,
42 RobotDeathAction,
43 EndMatchAction
44}
45
46table Action {
47 timestamp:int (id:0);
48 action_taken:ActionType (id:2);
49}
50
51table SubmitActions {
52 actions_list:[Action] (id:0);
53}
54
55root_type SubmitActions;