Latest commit a530933

直接访问世界

World 是 Bevy ECS 存储所有数据和相关元数据的地方。世界保持对资源、实体和组件的追踪。

世界(World) -> 调度(Schedule) -> 阶段(Stage) -> 系统(System)。

通常情况下,系统的参数会限制系统能够从世界访问的数据,要操作世界,只能使用 Commands

然而,还是有几种方法能够直接访问世界,做到完全而自由地处理数据:

todo:未测试

  • Exclusive systems
  • FromWorld impls
  • Via the App builder
  • Manually created Worlds for purposes like tests or scenes
  • Custom Commands
  • Custom Stage impls (not recommended, prefer exclusive systems)

todo:很多 todo,只能 todo 了。