mapLayer.ts 368 B

123456789101112131415
  1. import { type CameraState } from '../camera/camera'
  2. import { type MapScene } from '../renderer/mapRenderer'
  3. import { type TileStore } from '../tile/tileStore'
  4. export interface LayerRenderContext {
  5. ctx: any
  6. camera: CameraState
  7. scene: MapScene
  8. pulseFrame: number
  9. tileStore: TileStore
  10. }
  11. export interface MapLayer {
  12. draw(context: LayerRenderContext): void
  13. }