Skip to content

Commit f6afeeb

Browse files
committed
commands is now list[str] instead of list[flat.ConsoleCommand]
1 parent 711630b commit f6afeeb

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

rlbot/managers/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

rlbot/managers/hivemind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

rlbot/managers/match.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

rlbot/managers/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

rlbot/utils/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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())

rlbot/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.0-beta.22"
1+
__version__ = "2.0.0-beta.23"

0 commit comments

Comments
 (0)