mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import { ServerStatus } from "./interfaces";
|
|
import { Unit } from "./unit/unit";
|
|
|
|
interface CustomEventMap {
|
|
unitSelection: CustomEvent<Unit>;
|
|
unitDeselection: CustomEvent<Unit>;
|
|
unitsSelection: CustomEvent<Unit[]>;
|
|
unitsDeselection: CustomEvent<Unit[]>;
|
|
clearSelection: CustomEvent<any>;
|
|
unitDeath: CustomEvent<Unit>;
|
|
unitUpdated: CustomEvent<Unit>;
|
|
mapStateChanged: CustomEvent<string>;
|
|
mapContextMenu: CustomEvent<any>;
|
|
mapOptionChanged: CustomEvent<any>;
|
|
mapSourceChanged: CustomEvent<string>;
|
|
mapOptionsChanged: CustomEvent<any>; // TODO not very clear, why the two options?
|
|
configLoaded: CustomEvent<any>;
|
|
commandModeOptionsChanged: CustomEvent<any>;
|
|
contactsUpdated: CustomEvent<Unit>;
|
|
activeCoalitionChanged: CustomEvent<any>;
|
|
serverStatusUpdated: CustomEvent<ServerStatus>;
|
|
}
|
|
|
|
declare global {
|
|
interface Document {
|
|
addEventListener<K extends keyof CustomEventMap>(
|
|
type: K,
|
|
listener: (this: Document, ev: CustomEventMap[K]) => void
|
|
): void;
|
|
dispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K]): void;
|
|
}
|
|
|
|
//function getOlympusPlugin(): OlympusPlugin;
|
|
}
|
|
|
|
export {};
|