File tree Expand file tree Collapse file tree 6 files changed +12
-9
lines changed
Expand file tree Collapse file tree 6 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ def set_game_state(
250250 balls : dict [int , flat .DesiredBallState ] = {},
251251 cars : dict [int , flat .DesiredCarState ] = {},
252252 match_info : Optional [flat .DesiredMatchInfo ] = None ,
253- commands : list [flat . ConsoleCommand ] = [],
253+ commands : list [str ] = [],
254254 ):
255255 """
256256 Sets the game to the desired state.
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ def set_game_state(
264264 balls : dict [int , flat .DesiredBallState ] = {},
265265 cars : dict [int , flat .DesiredCarState ] = {},
266266 match_info : Optional [flat .DesiredMatchInfo ] = None ,
267- commands : list [flat . ConsoleCommand ] = [],
267+ commands : list [str ] = [],
268268 ):
269269 """
270270 Sets the game to the desired state.
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ def set_game_state(
265265 balls : dict [int , flat .DesiredBallState ] = {},
266266 cars : dict [int , flat .DesiredCarState ] = {},
267267 match_info : Optional [flat .DesiredMatchInfo ] = None ,
268- commands : list [flat . ConsoleCommand ] = [],
268+ commands : list [str ] = [],
269269 ):
270270 """
271271 Sets the game to the desired state.
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ def set_game_state(
217217 balls : dict [int , flat .DesiredBallState ] = {},
218218 cars : dict [int , flat .DesiredCarState ] = {},
219219 match_info : Optional [flat .DesiredMatchInfo ] = None ,
220- commands : list [flat . ConsoleCommand ] = [],
220+ commands : list [str ] = [],
221221 ):
222222 """
223223 Sets the game to the desired state.
Original file line number Diff line number Diff line change @@ -7,14 +7,17 @@ def fill_desired_game_state(
77 balls : dict [int , flat .DesiredBallState ] = {},
88 cars : dict [int , flat .DesiredCarState ] = {},
99 match_info : Optional [flat .DesiredMatchInfo ] = None ,
10- commands : list [flat . ConsoleCommand ] = [],
10+ commands : list [str ] = [],
1111) -> flat .DesiredGameState :
1212 """
13- # Converts the dictionaries to a DesiredGameState by
14- # filling in the blanks with empty states that do nothing.
13+ Converts the dictionaries to a DesiredGameState by
14+ filling in the blanks with empty states that do nothing.
1515 """
1616
17- game_state = flat .DesiredGameState (match_info = match_info , console_commands = commands )
17+ game_state = flat .DesiredGameState (
18+ match_info = match_info ,
19+ console_commands = [flat .ConsoleCommand (cmd ) for cmd in commands ],
20+ )
1821
1922 if balls :
2023 max_entry = max (balls .keys ())
Original file line number Diff line number Diff line change 1- __version__ = "2.0.0-beta.22 "
1+ __version__ = "2.0.0-beta.23 "
You can’t perform that action at this time.
0 commit comments