WorldRoute constructor
WorldRoute(
- World builder(), {
- CameraComponent? camera,
- bool maintainState = true,
A world route that uses the specified builder
. This builder will be
registered with the Game's map of world builders when this route is
first activated.
The camera
parameter is optional and can be used to set the camera
that will be used to render the world, if not provided the default camera
will be used.
Implementation
WorldRoute(this.builder, {this.camera, super.maintainState}) : super(null);