First commit perf canbuild transport ship

This commit is contained in:
variablevince
2025-10-24 00:17:10 +02:00
parent 73bf583452
commit 92d2b45340
11 changed files with 94 additions and 57 deletions
+8 -2
View File
@@ -11,7 +11,12 @@ import portIcon from "../../../../resources/images/PortIcon.svg";
import samLauncherIcon from "../../../../resources/images/SamLauncherIconWhite.svg";
import defensePostIcon from "../../../../resources/images/ShieldIconWhite.svg";
import { EventBus } from "../../../core/EventBus";
import { Gold, PlayerActions, UnitType } from "../../../core/game/Game";
import {
Gold,
PlayerActions,
TransportShipFilter,
UnitType,
} from "../../../core/game/Game";
import { GameView } from "../../../core/game/GameView";
import { ToggleStructureEvent } from "../../InputHandler";
import { renderNumber, translateText } from "../../Utils";
@@ -97,7 +102,8 @@ export class UnitDisplay extends LitElement implements Layer {
tick() {
const player = this.game?.myPlayer();
player?.actions().then((actions) => {
player?.actions(undefined, TransportShipFilter.Exclude).then((actions) => {
// player?.actions(undefined, TransportShipFilter.Default).then((actions) => {
this.playerActions = actions;
});
if (!player) return;