import type { PlayerState } from "@deadhead/schema"; import type { MapSelection } from "../src/map/hitTest"; import { buildScene } from "../src/map/scene"; /** * Test stand-in for the PixiJS map canvas: one button per tappable thing in * the real scene, calling `onSelect` with the same selection a tap would. */ export function MapCanvas({ state, onSelect, }: { state: PlayerState; onSelect?: (selection: MapSelection | null) => void; }) { const scene = buildScene(state, Date.now()); return (
{scene.locations.map((l) => ( ))} {scene.flights.map((f) => ( ))}
); }