Feat: added backend ability to set spawn heading

This commit is contained in:
Davide Passoni
2025-01-24 15:01:25 +01:00
parent d1d4116e66
commit 96415fd087
8 changed files with 40 additions and 5 deletions

View File

@@ -446,6 +446,7 @@ export enum DataIndexes {
country,
name,
unitName,
callsign,
groupName,
state,
task,

View File

@@ -210,6 +210,7 @@ export interface UnitData {
country: number;
name: string;
unitName: string;
callsign: string;
groupName: string;
state: string;
task: string;

View File

@@ -88,6 +88,7 @@ export abstract class Unit extends CustomMarker {
#country: number = 0;
#name: string = "";
#unitName: string = "";
#callsign: string = "";
#groupName: string = "";
#state: string = states[0];
#task: string = "";
@@ -197,6 +198,9 @@ export abstract class Unit extends CustomMarker {
getUnitName() {
return this.#unitName;
}
getCallsign() {
return this.#callsign;
}
getGroupName() {
return this.#groupName;
}
@@ -459,6 +463,9 @@ export abstract class Unit extends CustomMarker {
case DataIndexes.unitName:
this.#unitName = dataExtractor.extractString();
break;
case DataIndexes.callsign:
this.#callsign = dataExtractor.extractString();
break;
case DataIndexes.groupName:
this.#groupName = dataExtractor.extractString();
updateMarker = true;
@@ -646,6 +653,7 @@ export abstract class Unit extends CustomMarker {
country: this.#country,
name: this.#name,
unitName: this.#unitName,
callsign: this.#callsign,
groupName: this.#groupName,
state: this.#state,
task: this.#task,