diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-12-04 23:42:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 23:42:49 -0600 |
| commit | 421d8ce2c837e3140d8f866e63032c277b31a413 (patch) | |
| tree | d5f06fbcd02c24c6b40edd22cbdfda4d6ed6a39f /azalea-core | |
| parent | da4afa8ae3afec4cd59b9a19ae1e04818f1763a7 (diff) | |
| download | azalea-drasl-421d8ce2c837e3140d8f866e63032c277b31a413.tar.xz | |
Replace Bevy's FixedUpdate with Azalea's GameTick (#119)
* replace bevy FixedUpdate with azalea GameTick
* Update to Bevy 0.12.1
Diffstat (limited to 'azalea-core')
| -rw-r--r-- | azalea-core/Cargo.toml | 2 | ||||
| -rwxr-xr-x | azalea-core/src/lib.rs | 1 | ||||
| -rw-r--r-- | azalea-core/src/tick.rs | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/azalea-core/Cargo.toml b/azalea-core/Cargo.toml index 957eaaf5..4d8af3a5 100644 --- a/azalea-core/Cargo.toml +++ b/azalea-core/Cargo.toml @@ -13,7 +13,7 @@ azalea-buf = { path = "../azalea-buf", version = "0.8.0" } azalea-inventory = { version = "0.8.0", path = "../azalea-inventory" } simdnbt = { version = "0.2.1" } azalea-registry = { path = "../azalea-registry", version = "0.8.0" } -bevy_ecs = { version = "0.12.0", default-features = false, optional = true } +bevy_ecs = { version = "0.12.1", default-features = false, optional = true } nohash-hasher = "0.2.0" num-traits = "0.2.17" serde = { version = "^1.0", optional = true } 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; |
