diff options
| author | mat <git@matdoes.dev> | 2025-03-13 20:46:12 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-13 20:46:12 +0000 |
| commit | 65fe07215149ab81d0862ab7edac71d6a8417ef8 (patch) | |
| tree | 9e06778329cbf9a14f87c93d1a3686f6b91f2b4e /azalea-core/src | |
| parent | 7a192acc99358818c2f90cf4e2b8b236f91cfbf7 (diff) | |
| download | azalea-drasl-65fe07215149ab81d0862ab7edac71d6a8417ef8.tar.xz | |
fix wrong Consumable component implementation and add set_equipment test
Diffstat (limited to 'azalea-core/src')
| -rwxr-xr-x | azalea-core/src/lib.rs | 1 | ||||
| -rw-r--r-- | azalea-core/src/sound.rs | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs index ba6d61ef..a539dbd4 100755 --- a/azalea-core/src/lib.rs +++ b/azalea-core/src/lib.rs @@ -16,6 +16,7 @@ pub mod objectives; pub mod position; pub mod registry_holder; pub mod resource_location; +pub mod sound; #[cfg(feature = "bevy_ecs")] pub mod tick; pub mod tier; diff --git a/azalea-core/src/sound.rs b/azalea-core/src/sound.rs new file mode 100644 index 00000000..f12205e0 --- /dev/null +++ b/azalea-core/src/sound.rs @@ -0,0 +1,9 @@ +use azalea_buf::AzBuf; + +use crate::resource_location::ResourceLocation; + +#[derive(Clone, Debug, PartialEq, AzBuf)] +pub struct CustomSound { + pub location: ResourceLocation, + pub fixed_range: Option<f32>, +} |
