Add the rest of the TGO icons.

This commit is contained in:
Dan Albert
2021-05-19 21:24:54 -07:00
parent 1c7e065c52
commit 04ebe4c68a
13 changed files with 14 additions and 14 deletions

View File

@@ -22,6 +22,7 @@ const Categories = Object.freeze([
"allycamp",
"ammo",
"armor",
"coastal",
"comms",
"derrick",
"ewr",
@@ -29,6 +30,7 @@ const Categories = Object.freeze([
"farp",
"fob",
"fuel",
"missile",
"oil",
"power",
"ship",
@@ -37,8 +39,6 @@ const Categories = Object.freeze([
"ww2bunker",
]);
const LegacyCategories = Object.freeze(["coastal", "missile"]);
const UnitState = Object.freeze({
Alive: "alive",
Damaged: "damaged",
@@ -61,18 +61,6 @@ class TgoIcons {
}
}
}
for (const category of LegacyCategories) {
this.icons[category] = {};
for (const player of [true, false]) {
this.icons[category][player] = {};
for (const state of Object.values(UnitState)) {
this.icons[category][player][state] = this.loadLegacyIcon(
category,
player
);
}
}
}
}
icon(category, player, state) {