Fix new game creation.

This commit is contained in:
Dan Albert 2021-01-01 16:15:43 -08:00
parent 61d7d5e041
commit 34bdc0e80b

View File

@ -43,7 +43,6 @@ from ..weather import Conditions
if TYPE_CHECKING: if TYPE_CHECKING:
from game import Game from game import Game
from gen.flights.flight import FlightType from gen.flights.flight import FlightType
from ..event import UnitsDeliveryEvent
class ControlPointType(Enum): class ControlPointType(Enum):
@ -257,6 +256,7 @@ class ControlPoint(MissionTarget, ABC):
self.cptype = cptype self.cptype = cptype
# TODO: Should be Airbase specific. # TODO: Should be Airbase specific.
self.stances: Dict[int, CombatStance] = {} self.stances: Dict[int, CombatStance] = {}
from ..event import UnitsDeliveryEvent
self.pending_unit_deliveries = UnitsDeliveryEvent(self) self.pending_unit_deliveries = UnitsDeliveryEvent(self)
self.target_position: Optional[Point] = None self.target_position: Optional[Point] = None