Added frontend controls for emissions and countermeasures

This commit is contained in:
Pax1601
2023-05-11 17:24:56 +02:00
parent 98a6053a85
commit 71ef292763
10 changed files with 170 additions and 68 deletions

View File

@@ -209,6 +209,12 @@ export function setReactionToThreat(ID: number, reactionToThreat: string) {
POST(data, () => { });
}
export function setEmissionsCountermeasures(ID: number, emissionCountermeasure: string) {
var command = {"ID": ID, "emissionCountermeasure": emissionCountermeasure}
var data = {"setEmissionsCountermeasures": command}
POST(data, () => { });
}
export function refuel(ID: number) {
var command = { "ID": ID };
var data = { "refuel": command }