mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
feat: Add WorldRoute to enable swapping worlds from the RouterComponent (#3372)
This PR adds the `WorldRoute` which acts as a normal route, but instead of adding a new component (page), it swaps out the world that the camera (either the default camera or an explicitly passed in one) is watching.
This commit is contained in:
@ -30,6 +30,7 @@ import 'package:examples/stories/input/input.dart';
|
||||
import 'package:examples/stories/layout/layout.dart';
|
||||
import 'package:examples/stories/parallax/parallax.dart';
|
||||
import 'package:examples/stories/rendering/rendering.dart';
|
||||
import 'package:examples/stories/router/router.dart';
|
||||
import 'package:examples/stories/sprites/sprites.dart';
|
||||
import 'package:examples/stories/structure/structure.dart';
|
||||
import 'package:examples/stories/svg/svg.dart';
|
||||
@ -88,6 +89,7 @@ void runAsDashbook() {
|
||||
addLayoutStories(dashbook);
|
||||
addParallaxStories(dashbook);
|
||||
addRenderingStories(dashbook);
|
||||
addRouterStories(dashbook);
|
||||
addTiledStories(dashbook);
|
||||
addSpritesStories(dashbook);
|
||||
addSvgStories(dashbook);
|
||||
|
||||
Reference in New Issue
Block a user