mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 08:03:30 +08:00
Removing the hard-coded lines.
This commit is contained in:
parent
fc301d8cc8
commit
2a780d6ff9
@ -5,6 +5,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import TYPE_CHECKING, override
|
from typing import TYPE_CHECKING, override
|
||||||
import random
|
import random
|
||||||
|
import inspect
|
||||||
import logging
|
import logging
|
||||||
import weakref
|
import weakref
|
||||||
|
|
||||||
@ -177,27 +178,9 @@ 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.
|
for _, maptype in inspect.getmembers(stdmaps, inspect.isclass):
|
||||||
for maptype in [
|
if issubclass(maptype, bascenev1.Map):
|
||||||
stdmaps.HockeyStadium,
|
bascenev1.register_map(maptype)
|
||||||
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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user