mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
36 lines
849 B
Python
36 lines
849 B
Python
from __future__ import annotations
|
|
|
|
from datetime import datetime, timedelta
|
|
from typing import TYPE_CHECKING
|
|
|
|
from dcs import Point
|
|
|
|
from .flightstate import FlightState
|
|
from ..starttype import StartType
|
|
|
|
if TYPE_CHECKING:
|
|
from game.sim.gameupdateevents import GameUpdateEvents
|
|
|
|
|
|
class Completed(FlightState):
|
|
def on_game_tick(
|
|
self, events: GameUpdateEvents, time: datetime, duration: timedelta
|
|
) -> None:
|
|
return
|
|
|
|
@property
|
|
def is_waiting_for_start(self) -> bool:
|
|
return False
|
|
|
|
def estimate_position(self) -> Point:
|
|
return self.flight.arrival.position
|
|
|
|
@property
|
|
def spawn_type(self) -> StartType:
|
|
# TODO: May want to do something different to make these uncontrolled?
|
|
return StartType.COLD
|
|
|
|
@property
|
|
def description(self) -> str:
|
|
return "Completed"
|