-
Notifications
You must be signed in to change notification settings - Fork 2
/
gamestate.fbs
68 lines (55 loc) · 1.26 KB
/
gamestate.fbs
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
56
57
58
59
60
61
62
63
64
65
66
67
68
namespace rlbot.flat;
// This section deals with desired game state, useful for teleporting cars around, etc.
struct Float {
val:float;
}
struct Bool {
val:bool;
}
// Values are in "unreal units"
table Vector3Partial {
x:Float;
y:Float;
z:Float;
}
// Values are in radians
table RotatorPartial {
pitch:Float;
yaw:Float;
roll:Float;
}
table DesiredPhysics {
location:Vector3Partial;
rotation:RotatorPartial;
velocity:Vector3Partial;
angular_velocity:Vector3Partial;
}
table DesiredBallState {
physics:DesiredPhysics (required);
}
table DesiredCarState {
physics:DesiredPhysics;
boost_amount:Float;
}
table DesiredBoostState {
respawn_time:Float;
}
table DesiredGameInfoState {
world_gravity_z:Float;
game_speed:Float;
paused:Bool;
end_match:Bool;
}
/// A console command which we will try to execute inside Rocket League.
/// See https://wiki.rlbot.org/framework/console-commands/ for a list of known commands.
table ConsoleCommand {
command:string (required);
}
table DesiredGameState {
ball_states:[DesiredBallState] (required);
car_states:[DesiredCarState] (required);
boost_states:[DesiredBoostState] (required);
game_info_state:DesiredGameInfoState;
console_commands:[ConsoleCommand] (required);
}
root_type DesiredGameState;