Skip to content

Commit 3d554a4

Browse files
committed
Fix necto
1 parent 2eec834 commit 3d554a4

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

tests/necto/rlgym_compat/player_data.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33

44
class PlayerData(object):
5-
car_id: int = -1
6-
team_num: int = -1
7-
is_demoed: bool = False
8-
on_ground: bool = False
9-
ball_touched: bool = False
10-
has_jump: bool = False
11-
has_flip: bool = False
12-
boost_amount: float = -1
13-
car_data: PhysicsObject = PhysicsObject()
14-
inverted_car_data: PhysicsObject = PhysicsObject()
5+
def __init__(self):
6+
self.car_id: int = -1
7+
self.team_num: int = -1
8+
self.is_demoed: bool = False
9+
self.on_ground: bool = False
10+
self.ball_touched: bool = False
11+
self.has_jump: bool = False
12+
self.has_flip: bool = False
13+
self.boost_amount: float = -1
14+
self.car_data: PhysicsObject = PhysicsObject()
15+
self.inverted_car_data: PhysicsObject = PhysicsObject()

0 commit comments

Comments
 (0)