Add package frequency & show package info on kneeboard

Resolves #71
This commit is contained in:
Raffson
2023-01-08 19:14:51 +01:00
parent cc9f61005b
commit 48e0d579cf
6 changed files with 62 additions and 13 deletions

View File

@@ -13,6 +13,7 @@ from .flightplans.formation import FormationFlightPlan
from .flighttype import FlightType
from .packagewaypoints import PackageWaypoints
from .traveltime import TotEstimator
from ..radio.radios import RadioFrequency
if TYPE_CHECKING:
from game.theater import ControlPoint, MissionTarget
@@ -27,9 +28,11 @@ class Package:
db: Database[Flight],
auto_asap: bool = False,
custom_name: str | None = None,
frequency: RadioFrequency | None = None,
) -> None:
self.target = target
self._db = db
self.frequency = frequency
self.custom_name = custom_name
# True if the package ToT should be reset to ASAP whenever the player makes a