From 421d8ce2c837e3140d8f866e63032c277b31a413 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:42:49 -0600 Subject: Replace Bevy's FixedUpdate with Azalea's GameTick (#119) * replace bevy FixedUpdate with azalea GameTick * Update to Bevy 0.12.1 --- azalea-core/src/lib.rs | 1 + azalea-core/src/tick.rs | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 azalea-core/src/tick.rs (limited to 'azalea-core/src') diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs index cb67da58..511c897b 100755 --- a/azalea-core/src/lib.rs +++ b/azalea-core/src/lib.rs @@ -16,4 +16,5 @@ pub mod particle; pub mod position; pub mod registry_holder; pub mod resource_location; +pub mod tick; pub mod tier; diff --git a/azalea-core/src/tick.rs b/azalea-core/src/tick.rs new file mode 100644 index 00000000..db10d80a --- /dev/null +++ b/azalea-core/src/tick.rs @@ -0,0 +1,4 @@ +use bevy_ecs::schedule::ScheduleLabel; + +#[derive(ScheduleLabel, Hash, Copy, Clone, Debug, Default, Eq, PartialEq)] +pub struct GameTick; -- cgit v1.2.3