16 lines
368 B
TypeScript
16 lines
368 B
TypeScript
import { type CameraState } from '../camera/camera'
|
|
import { type MapScene } from '../renderer/mapRenderer'
|
|
import { type TileStore } from '../tile/tileStore'
|
|
|
|
export interface LayerRenderContext {
|
|
ctx: any
|
|
camera: CameraState
|
|
scene: MapScene
|
|
pulseFrame: number
|
|
tileStore: TileStore
|
|
}
|
|
|
|
export interface MapLayer {
|
|
draw(context: LayerRenderContext): void
|
|
}
|