summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-10-28 14:22:51 +0100
committerHampusM <hampus@hampusmat.com>2026-10-28 14:22:51 +0100
commit0b61ade9cb87319a5a3f8e657177bed4ee8c17dc (patch)
tree8ca5d13efd44c395c1f4fa9d40c4272abcc4d585
parent74caab3a4322004c4c55cca1594382eb066c9a9f (diff)
refactor(engine): rename fns in windowing module
-rw-r--r--engine/src/windowing.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/src/windowing.rs b/engine/src/windowing.rs
index 3e27075..46f281f 100644
--- a/engine/src/windowing.rs
+++ b/engine/src/windowing.rs
@@ -90,7 +90,7 @@ impl crate::ecs::extension::Extension for Extension
collector.spawn_declared_entity(&PHASE);
- collector.add_system(*PHASE, update_stuff);
+ collector.add_system(*PHASE, update);
collector.add_observer(handle_window_changed);
collector.add_observer(handle_window_removed);
@@ -128,7 +128,7 @@ fn handle_window_creation_ready(
}
#[tracing::instrument(skip_all)]
-fn update_stuff(
+fn update(
mut context: Single<Context>,
mut keyboard: Single<Keyboard>,
mut mouse: Single<Mouse>,
@@ -153,7 +153,7 @@ fn update_stuff(
update_inputs(context, keyboard, mouse, mouse_buttons);
- receive_app_messages(context, &mut actions, world);
+ handle_app_messages(context, &mut actions, world);
if context.shared_state.thread_panicked.load(Ordering::Relaxed) {
cold_path();
@@ -181,7 +181,7 @@ fn update_stuff(
Ok(())
}
-fn receive_app_messages(context: &mut Context, actions: &mut Actions, world: &World)
+fn handle_app_messages(context: &mut Context, actions: &mut Actions, world: &World)
{
let Context {
ref mut windows, ref shared_state, ..