mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-19 07:36:00 +00:00
First commit perf canbuild transport ship
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user