mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 06:23:19 +08:00
Merge pull request #750 from vishal332008/main
Removing the hard-coded lines.
This commit is contained in:
commit
bc2d097c5b
@ -178,27 +178,7 @@ class ClassicAppSubsystem(babase.AppSubsystem):
|
|||||||
if not env.debug and not env.test and not plus.is_blessed():
|
if not env.debug and not env.test and not plus.is_blessed():
|
||||||
babase.screenmessage('WARNING: NON-BLESSED BUILD', color=(1, 0, 0))
|
babase.screenmessage('WARNING: NON-BLESSED BUILD', color=(1, 0, 0))
|
||||||
|
|
||||||
# FIXME: This should not be hard-coded.
|
stdmaps.register_all_maps()
|
||||||
for maptype in [
|
|
||||||
stdmaps.HockeyStadium,
|
|
||||||
stdmaps.FootballStadium,
|
|
||||||
stdmaps.Bridgit,
|
|
||||||
stdmaps.BigG,
|
|
||||||
stdmaps.Roundabout,
|
|
||||||
stdmaps.MonkeyFace,
|
|
||||||
stdmaps.ZigZag,
|
|
||||||
stdmaps.ThePad,
|
|
||||||
stdmaps.DoomShroom,
|
|
||||||
stdmaps.LakeFrigid,
|
|
||||||
stdmaps.TipTop,
|
|
||||||
stdmaps.CragCastle,
|
|
||||||
stdmaps.TowerD,
|
|
||||||
stdmaps.HappyThoughts,
|
|
||||||
stdmaps.StepRightUp,
|
|
||||||
stdmaps.Courtyard,
|
|
||||||
stdmaps.Rampage,
|
|
||||||
]:
|
|
||||||
bascenev1.register_map(maptype)
|
|
||||||
|
|
||||||
spazappearance.register_appearances()
|
spazappearance.register_appearances()
|
||||||
bascenev1.init_campaigns()
|
bascenev1.init_campaigns()
|
||||||
|
|||||||
@ -15,6 +15,30 @@ if TYPE_CHECKING:
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
|
||||||
|
def register_all_maps() -> None:
|
||||||
|
"""Registering all maps."""
|
||||||
|
for maptype in [
|
||||||
|
HockeyStadium,
|
||||||
|
FootballStadium,
|
||||||
|
Bridgit,
|
||||||
|
BigG,
|
||||||
|
Roundabout,
|
||||||
|
MonkeyFace,
|
||||||
|
ZigZag,
|
||||||
|
ThePad,
|
||||||
|
DoomShroom,
|
||||||
|
LakeFrigid,
|
||||||
|
TipTop,
|
||||||
|
CragCastle,
|
||||||
|
TowerD,
|
||||||
|
HappyThoughts,
|
||||||
|
StepRightUp,
|
||||||
|
Courtyard,
|
||||||
|
Rampage,
|
||||||
|
]:
|
||||||
|
bs.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."""
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user