mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
16 lines
396 B
Python
16 lines
396 B
Python
from dataclasses import dataclass
|
|
|
|
from dcs import Point
|
|
|
|
|
|
@dataclass
|
|
class PresetLocation:
|
|
"""A preset location"""
|
|
position: Point
|
|
heading: int
|
|
id: str
|
|
|
|
def __str__(self):
|
|
return "-" * 10 + "X: {}\n Y: {}\nHdg: {}°\nId: {}".format(self.position.x, self.position.y, self.heading,
|
|
self.id) + "-" * 10
|