mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 01:10:50 +00:00
move TransformHandler/UIState/Controller out of graphics/, drop dead GhostStructureChangedEvent
graphics/ was a canvas2D-era directory name — TransformHandler, UIState, and the Controller interface aren't graphics, they're cross-cutting client state. Hoist them to src/client/ so the path matches what they are. GhostStructureChangedEvent had three emitters and zero listeners; removed.
This commit is contained in:
@@ -3,8 +3,7 @@ import { EventBus } from "../../core/EventBus";
|
||||
import { UnitType } from "../../core/game/Game";
|
||||
import { TileRef } from "../../core/game/GameMap";
|
||||
import { GameView, UnitView } from "../../core/game/GameView";
|
||||
import { Controller } from "../graphics/layers/Controller";
|
||||
import { TransformHandler } from "../graphics/TransformHandler";
|
||||
import { Controller } from "../Controller";
|
||||
import {
|
||||
CloseViewEvent,
|
||||
ContextMenuEvent,
|
||||
@@ -17,6 +16,7 @@ import {
|
||||
WarshipSelectionBoxUpdateEvent,
|
||||
} from "../InputHandler";
|
||||
import { GameView as WebGLGameView } from "../render/gl";
|
||||
import { TransformHandler } from "../TransformHandler";
|
||||
import { MoveWarshipIntentEvent } from "../Transport";
|
||||
|
||||
const WARSHIP_SELECTION_RADIUS = 10;
|
||||
|
||||
Reference in New Issue
Block a user