mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Introduces cargo weight and draw argument properties to units across backend, frontend, and Python API. Adds related commands, data extraction, and registration logic, enabling setting and reading of cargo weight and custom draw arguments for units. Includes new API examples and updates to interfaces, data types, and Lua backend for full feature integration.
19 lines
356 B
TypeScript
19 lines
356 B
TypeScript
import * as L from "leaflet";
|
|
|
|
export class LatLng extends L.LatLng {
|
|
threshold: number;
|
|
|
|
constructor(lat: number, lng: number, alt: number, threshold: number) {
|
|
super(lat, lng, alt);
|
|
this.threshold = threshold;
|
|
}
|
|
|
|
setThreshold(threshold: number) {
|
|
this.threshold = threshold;
|
|
}
|
|
|
|
getThreshold() {
|
|
return this.threshold;
|
|
}
|
|
}
|