More work on scripted spawn menu

This commit is contained in:
Pax1601
2023-08-31 17:25:47 +02:00
parent 3959139dd8
commit fab7d26191
9 changed files with 310 additions and 185 deletions

View File

@@ -7,6 +7,7 @@ import { groundUnitDatabase } from "../unit/groundunitdatabase";
import { Buffer } from "buffer";
import { ROEs, emissionsCountermeasures, reactionsToThreat, states } from "../constants/constants";
import { Dropdown } from "../controls/dropdown";
import { UnitBlueprint } from "../@types/unitdatabase";
export function bearing(lat1: number, lon1: number, lat2: number, lon2: number) {
const φ1 = deg2rad(lat1); // φ, λ in radians