Implemented executed commands provider

This commit is contained in:
Pax1601
2023-09-04 12:41:54 +02:00
parent aca1e112d2
commit ede245a37d
13 changed files with 174 additions and 104 deletions

View File

@@ -425,8 +425,8 @@ export class Map extends L.Map {
}
}
addTemporaryMarker(latlng: L.LatLng, name: string, coalition: string) {
var marker = new TemporaryUnitMarker(latlng, name, coalition);
addTemporaryMarker(latlng: L.LatLng, name: string, coalition: string, commandHash?: string) {
var marker = new TemporaryUnitMarker(latlng, name, coalition, commandHash);
marker.addTo(this);
this.#temporaryMarkers.push(marker);
}