Begin move mesh + Vertex and Camera into core
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 20m30s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 20m30s
This commit is contained in:
parent
2fbf4e6ce2
commit
852d72d716
11 changed files with 64 additions and 3 deletions
21
src/core/scene.rs
Normal file
21
src/core/scene.rs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue