Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 20m30s
21 lines
317 B
Rust
21 lines
317 B
Rust
use bevy_ecs::world::World;
|
|
|
|
pub struct Scene {
|
|
world: World,
|
|
}
|
|
|
|
impl Scene {
|
|
pub fn new() -> Self {
|
|
Self {
|
|
world: World::new(),
|
|
}
|
|
}
|
|
|
|
pub fn world(&self) -> &World {
|
|
&self.world
|
|
}
|
|
|
|
pub fn world_mut(&mut self) -> &mut World {
|
|
&mut self.world
|
|
}
|
|
}
|