From 936c801305dfb053dd3e67687f61b7201d9e1064 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 9 Dec 2024 14:09:49 +0100 Subject: chore(engine): use ecs lib phases --- engine/src/camera/fly.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/src/camera/fly.rs') diff --git a/engine/src/camera/fly.rs b/engine/src/camera/fly.rs index 99739e3..b71f875 100644 --- a/engine/src/camera/fly.rs +++ b/engine/src/camera/fly.rs @@ -1,11 +1,11 @@ use ecs::component::local::Local; +use ecs::phase::UPDATE as UPDATE_PHASE; use ecs::sole::Single; use ecs::system::{Into, System}; use ecs::{Component, Query}; use crate::camera::{Active as ActiveCamera, Camera}; use crate::delta_time::DeltaTime; -use crate::event::Update as UpdateEvent; use crate::input::{Cursor, CursorFlags, Key, KeyState, Keys}; use crate::transform::Position; use crate::util::builder; @@ -60,7 +60,7 @@ impl ecs::extension::Extension for Extension fn collect(self, mut collector: ecs::extension::Collector<'_>) { collector.add_system( - UpdateEvent, + *UPDATE_PHASE, update .into_system() .initialize((CursorState::default(), self.0)), -- cgit v1.2.3-18-g5258