mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add a UUID -> Flight database to Game.
This will be expanded with other types as needed.
This commit is contained in:
@@ -6,7 +6,7 @@ import math
|
||||
from collections.abc import Iterator
|
||||
from datetime import date, datetime, timedelta
|
||||
from enum import Enum
|
||||
from typing import Any, List, TYPE_CHECKING, Type, TypeVar, Union, cast
|
||||
from typing import Any, List, TYPE_CHECKING, Type, Union, cast
|
||||
|
||||
from dcs.countries import Switzerland, USAFAggressors, UnitedNationsPeacekeepers
|
||||
from dcs.country import Country
|
||||
@@ -25,6 +25,7 @@ from . import persistency
|
||||
from .ato.flighttype import FlightType
|
||||
from .campaignloader import CampaignAirWingConfig
|
||||
from .coalition import Coalition
|
||||
from .db.gamedb import GameDb
|
||||
from .factions.faction import Faction
|
||||
from .infos.information import Information
|
||||
from .profiling import logged_duration
|
||||
@@ -115,6 +116,8 @@ class Game:
|
||||
self.current_group_id = 0
|
||||
self.name_generator = naming.namegen
|
||||
|
||||
self.db = GameDb()
|
||||
|
||||
self.conditions = self.generate_conditions()
|
||||
|
||||
self.sanitize_sides(player_faction, enemy_faction)
|
||||
|
||||
Reference in New Issue
Block a user