Refactor + Begin add SceneSchedule

This commit is contained in:
Florian RICHER 2025-06-13 13:27:34 +02:00
parent 7b1373620c
commit 77affedf93
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
14 changed files with 286 additions and 188 deletions

View file

@ -1,15 +1,18 @@
use std::error::Error;
use bevy_ecs::world::World;
use bevy_ecs::{schedule::Schedule, world::World};
use vulkano::sync::GpuFuture;
use crate::core::app::context::WindowContext;
use crate::core::{app::context::WindowContext, scene::schedule::SceneScedule};
mod extract;
pub mod manager;
pub mod schedule;
/// Structure Scene qui contient le world et l'implémentation AsScene
pub struct Scene {
pub world: World,
pub loop_schedule: Schedule,
pub implementation: Box<dyn AsScene>,
}
@ -17,6 +20,7 @@ impl Scene {
pub fn new(implementation: Box<dyn AsScene>, world: World) -> Self {
Self {
world,
loop_schedule: SceneScedule::base_schedule(),
implementation,
}
}