BonfireWidget constructor

const BonfireWidget({
  1. Key? key,
  2. required MapGame map,
  3. JoystickController? joystick,
  4. Player? player,
  5. GameInterface? interface,
  6. List<Enemy>? enemies,
  7. List<GameDecoration>? decorations,
  8. GameController? gameController,
  9. GameBackground? background,
  10. bool constructionMode = false,
  11. bool showCollisionArea = false,
  12. bool showFPS = false,
  13. Color? constructionModeColor,
  14. Color? collisionAreaColor,
  15. Color? lightingColorGame,
  16. GameColorFilter? colorFilter,
  17. List<GameComponent>? components,
  18. Map<String, OverlayWidgetBuilder<BonfireGame>>? overlayBuilderMap,
  19. List<String>? initialActiveOverlays,
  20. CameraConfig? cameraConfig,
  21. TapInGame? onTapDown,
  22. TapInGame? onTapUp,
  23. ValueChanged<BonfireGame>? onReady,
})

Implementation

const BonfireWidget({
  Key? key,
  required this.map,
  this.joystick,
  this.player,
  this.interface,
  this.enemies,
  this.decorations,
  this.gameController,
  this.background,
  this.constructionMode = false,
  this.showCollisionArea = false,
  this.showFPS = false,
  this.constructionModeColor,
  this.collisionAreaColor,
  this.lightingColorGame,
  this.colorFilter,
  this.components,
  this.overlayBuilderMap,
  this.initialActiveOverlays,
  this.cameraConfig,
  this.onTapDown,
  this.onTapUp,
  this.onReady,
}) : super(key: key);