More work on AWACS mode

This commit is contained in:
Davide Passoni
2024-11-27 17:36:32 +01:00
parent a92d4403d7
commit b4841872ca
12 changed files with 286 additions and 188 deletions

View File

@@ -1,5 +1,5 @@
import { LatLng, LatLngBounds } from "leaflet";
import { MapOptions } from "../types/types";
import { Coalition, MapOptions } from "../types/types";
import { CommandModeOptions } from "../interfaces";
import { ContextAction } from "../unit/contextaction";
import {
@@ -30,6 +30,8 @@ export const SELECT_TOLERANCE_PX = 5;
export const SHORT_PRESS_MILLISECONDS = 200;
export const DEBOUNCE_MILLISECONDS = 200;
export const TRAIL_LENGTH = 10;
export const UNITS_URI = "units";
export const WEAPONS_URI = "weapons";
export const LOGS_URI = "logs";
@@ -349,9 +351,8 @@ export const MAP_OPTIONS_DEFAULTS: MapOptions = {
cameraPluginEnabled: false,
cameraPluginMode: "map",
tabletMode: false,
showUnitBullseyes: false,
showUnitBRAA: false,
AWACSMode: false
AWACSMode: false,
AWACSCoalition: "blue"
};
export const MAP_HIDDEN_TYPES_DEFAULTS = {