MiniMapCanvas constructor
MiniMapCanvas({
- required Iterable<
TileComponent> tiles, - required Iterable<
GameComponent> components, - required Vector2 cameraPosition,
- required Vector2 gameSize,
- double zoom = 1,
- MiniMapCustomRender<
TileComponent> ? tileRender, - MiniMapCustomRender<
GameComponent> ? componentsRender,
Implementation
MiniMapCanvas({
required this.tiles,
required this.components,
required this.cameraPosition,
required this.gameSize,
this.zoom = 1,
this.tileRender,
this.componentsRender,
});