Minor cleanup

This commit is contained in:
dpassoni
2023-03-08 13:02:58 +01:00
parent afbdcfee9b
commit f2261ff1e8
5 changed files with 164 additions and 106 deletions

View File

@@ -60,12 +60,6 @@ export class UnitsManager {
.forEach((ID: string) => this.#units[parseInt(ID)]?.setData(data.units[ID]));
}
forceUpdate() {
for (let ID in this.#units) {
this.#units[ID].forceUpdate();
}
}
selectUnit(ID: number, deselectAllUnits: boolean = true)
{
if (deselectAllUnits)