From 3553a24c86791f6f4501e3d19fb85f267435cf70 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 9 Dec 2024 14:10:09 +0100 Subject: chore: use start phase --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index efe422c..a982dbb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,8 +10,8 @@ use engine::camera::fly::{ use engine::camera::{Active as ActiveCamera, Camera}; use engine::color::Color; use engine::data_types::dimens::Dimens; +use engine::ecs::phase::START as START_PHASE; use engine::ecs::sole::Single; -use engine::event::Start as StartEvent; use engine::file_format::wavefront::mtl::parse as parse_mtl; use engine::file_format::wavefront::obj::parse as parse_obj; use engine::input::Extension as InputExtension; @@ -99,7 +99,7 @@ fn main() -> Result<(), Box> engine.add_sole(GlobalLight::default())?; - engine.register_system(StartEvent, prepare_window); + engine.register_system(*START_PHASE, prepare_window); engine.add_extension(OpenglRendererExtension::default()); -- cgit v1.2.3-18-g5258