MiniMapCanvas constructor

MiniMapCanvas({
  1. required Iterable<TileComponent> tiles,
  2. required Iterable<GameComponent> components,
  3. required Vector2 cameraPosition,
  4. required Vector2 gameSize,
  5. double zoom = 1,
  6. MiniMapCustomRender<TileComponent>? tileRender,
  7. MiniMapCustomRender<GameComponent>? componentsRender,
})

Implementation

MiniMapCanvas({
  required this.tiles,
  required this.components,
  required this.cameraPosition,
  required this.gameSize,
  this.zoom = 1,
  this.tileRender,
  this.componentsRender,
});