mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Setting this up as part of the game makes it possible for us to show in the UI. https://github.com/dcs-liberation/dcs_liberation/issues/136
12 lines
225 B
Python
12 lines
225 B
Python
from dataclasses import dataclass
|
|
from typing import List
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class LatLon:
|
|
latitude: float
|
|
longitude: float
|
|
|
|
def as_list(self) -> List[float]:
|
|
return [self.latitude, self.longitude]
|