@@ -29,7 +29,7 @@ class Bot:
2929 _has_field_info = False
3030 _has_player_mapping = False
3131
32- _latest_packet : Optional [flat .GameTickPacket ] = None
32+ _latest_packet : Optional [flat .GamePacket ] = None
3333 _latest_prediction = flat .BallPrediction ()
3434
3535 def __init__ (self ):
@@ -116,10 +116,10 @@ def _handle_player_mappings(self, player_mappings: flat.TeamControllables):
116116 def _handle_ball_prediction (self , ball_prediction : flat .BallPrediction ):
117117 self ._latest_prediction = ball_prediction
118118
119- def _handle_packet (self , packet : flat .GameTickPacket ):
119+ def _handle_packet (self , packet : flat .GamePacket ):
120120 self ._latest_packet = packet
121121
122- def _packet_processor (self , packet : flat .GameTickPacket ):
122+ def _packet_processor (self , packet : flat .GamePacket ):
123123 if len (packet .players ) <= self .index :
124124 return
125125
@@ -151,9 +151,9 @@ def run(
151151
152152 # custom message handling logic
153153 # this reads all data in the socket until there's no more immediately available
154- # checks if there was a GameTickPacket in the data, and if so, processes it
154+ # checks if there was a GamePacket in the data, and if so, processes it
155155 # then sets the socket to non-blocking and waits for more data
156- # if there was no GameTickPacket , it sets to blocking and waits for more data
156+ # if there was no GamePacket , it sets to blocking and waits for more data
157157 while True :
158158 try :
159159 self ._game_interface .handle_incoming_messages (True )
@@ -274,7 +274,7 @@ def initialize(self):
274274 def retire (self ):
275275 """Called after the game ends"""
276276
277- def get_output (self , packet : flat .GameTickPacket ) -> flat .ControllerState :
277+ def get_output (self , packet : flat .GamePacket ) -> flat .ControllerState :
278278 """
279279 Where all the logic of your bot gets its input and returns its output.
280280 """
0 commit comments