summaryrefslogtreecommitdiff
path: root/engine/src/camera/fly.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-12-09 14:09:49 +0100
committerHampusM <hampus@hampusmat.com>2024-12-09 14:09:49 +0100
commit936c801305dfb053dd3e67687f61b7201d9e1064 (patch)
treeb52b404447e8a4415d7e34558a6036ae3eca5d35 /engine/src/camera/fly.rs
parentdcc40c9205e5f4cf484523f97eb12a561d7b2b22 (diff)
chore(engine): use ecs lib phases
Diffstat (limited to 'engine/src/camera/fly.rs')
-rw-r--r--engine/src/camera/fly.rs4
1 files changed, 2 insertions, 2 deletions
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)),