Fixing a bit

This commit is contained in:
Vishal 2025-01-18 00:35:07 +05:30 committed by GitHub
parent 692ee04db0
commit 17609e68ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,9 @@ from bascenev1lib.gameutils import SharedObjects
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Any from typing import Any
ALL_MAPS = [
def register_all_maps() -> None:
for maptype in [
HockeyStadium, HockeyStadium,
FootballStadium, FootballStadium,
Bridgit, Bridgit,
@ -32,11 +34,9 @@ ALL_MAPS = [
StepRightUp, StepRightUp,
Courtyard, Courtyard,
Rampage, Rampage,
] ]:
bs.register_map(maptype)
def register_all_maps():
for maptype in ALL_MAPS:
bascenev1.register_map(maptype)
class HockeyStadium(bs.Map): class HockeyStadium(bs.Map):
"""Stadium map used for ice hockey games.""" """Stadium map used for ice hockey games."""