Move missiongenerator helper to missiongenerator.

This commit is contained in:
Dan Albert
2022-02-18 18:12:53 -08:00
parent 4f64329f25
commit ddfe4c00b1
2 changed files with 11 additions and 14 deletions

View File

@@ -2,8 +2,6 @@ from datetime import datetime
from enum import Enum
from typing import Type
from dcs.countries import country_dict
# mypy can't resolve these if they're wildcard imports for some reason.
from dcs.ships import (
CVN_71,
@@ -131,13 +129,6 @@ def upgrade_to_supercarrier(unit: Type[ShipType], name: str) -> Type[ShipType]:
return unit
def country_id_from_name(name: str) -> int:
for k, v in country_dict.items():
if v.name == name:
return k
return -1
class DefaultLiveries:
class Default(Enum):
af_standard = ""