mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Load airfield data when called for airport.
The for_theater method is always called before for_airport is during normal gameplay, but I'm writing a linter to show missing airfield data that calls for_airport first.
This commit is contained in:
parent
a3d58daa3c
commit
46a3aa9540
@ -179,6 +179,7 @@ class AirfieldData:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def for_airport(cls, theater: ConflictTheater, airport: Airport) -> AirfieldData:
|
def for_airport(cls, theater: ConflictTheater, airport: Airport) -> AirfieldData:
|
||||||
|
cls._load_for_theater_if_needed(theater)
|
||||||
return cls._airfields[theater.terrain.name][airport.id]
|
return cls._airfields[theater.terrain.name][airport.id]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
0
resources/tools/datalint.py
Normal file
0
resources/tools/datalint.py
Normal file
Loading…
x
Reference in New Issue
Block a user