feat: initialize mini program map engine
This commit is contained in:
15
miniprogram/engine/layer/mapLayer.ts
Normal file
15
miniprogram/engine/layer/mapLayer.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user