Add custom name for packages in ATO overview

Resolves #55
This commit is contained in:
Raffson
2023-01-02 02:26:00 +01:00
parent f4d75a2c6f
commit 2aed461b3a
4 changed files with 32 additions and 2 deletions

View File

@@ -22,10 +22,15 @@ class Package:
"""A mission package."""
def __init__(
self, target: MissionTarget, db: Database[Flight], auto_asap: bool = False
self,
target: MissionTarget,
db: Database[Flight],
auto_asap: bool = False,
custom_name: str | None = None,
) -> None:
self.target = target
self._db = db
self.custom_name = custom_name
# True if the package ToT should be reset to ASAP whenever the player makes a
# change. This is really a UI property rather than a game property, but we want