Begin move mesh + Vertex and Camera into core
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 20m30s

This commit is contained in:
Florian RICHER 2025-04-04 13:38:27 +02:00
parent 2fbf4e6ce2
commit 852d72d716
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
11 changed files with 64 additions and 3 deletions

21
src/core/scene.rs Normal file
View 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
}
}