BonfireWidget constructor

const BonfireWidget({
  1. Key? key,
  2. required GameMap map,
  3. List<PlayerController>? playerControllers,
  4. Player? player,
  5. GameInterface? interface,
  6. GameBackground? background,
  7. bool debugMode = false,
  8. bool showCollisionArea = false,
  9. Color? collisionAreaColor,
  10. Color? lightingColorGame,
  11. Color? backgroundColor,
  12. GameColorFilter? colorFilter,
  13. List<GameComponent>? hudComponents,
  14. List<GameComponent>? components,
  15. Map<String, OverlayWidgetBuilder<BonfireGame>>? overlayBuilderMap,
  16. List<String>? initialActiveOverlays,
  17. CameraConfig? cameraConfig,
  18. ValueChanged<BonfireGameInterface>? onReady,
  19. FocusNode? focusNode,
  20. bool autofocus = true,
  21. MouseCursor? mouseCursor,
  22. VoidCallback? onDispose,
  23. List<Force2D>? globalForces,
})

Implementation

const BonfireWidget({
  Key? key,
  required this.map,
  this.playerControllers,
  this.player,
  this.interface,
  this.background,
  this.debugMode = false,
  this.showCollisionArea = false,
  this.collisionAreaColor,
  this.lightingColorGame,
  this.backgroundColor,
  this.colorFilter,
  this.hudComponents,
  this.components,
  this.overlayBuilderMap,
  this.initialActiveOverlays,
  this.cameraConfig,
  this.onReady,
  this.focusNode,
  this.autofocus = true,
  this.mouseCursor,
  this.onDispose,
  this.globalForces,
}) : super(key: key);