pub struct InstrumentDefinition {
pub sound_event: IdOr<SoundEventDefinition>,
pub use_duration: f32,
pub range: f32,
pub description: TextComponent,
}Expand description
Defines a Goat Horn instrument.
Fields§
§sound_event: IdOr<SoundEventDefinition>The sound played when the horn is used.
use_duration: f32How long the horn plays (in seconds).
range: f32The audible range of the horn.
description: TextComponentThe description shown in the tooltip (e.g., “Ponder”).
Trait Implementations§
Source§impl Clone for InstrumentDefinition
impl Clone for InstrumentDefinition
Source§fn clone(&self) -> InstrumentDefinition
fn clone(&self) -> InstrumentDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstrumentDefinition
impl Debug for InstrumentDefinition
Source§impl<'a> Decode<'a> for InstrumentDefinition
impl<'a> Decode<'a> for InstrumentDefinition
Source§impl Encode for InstrumentDefinition
impl Encode for InstrumentDefinition
Source§impl PartialEq for InstrumentDefinition
impl PartialEq for InstrumentDefinition
impl StructuralPartialEq for InstrumentDefinition
Auto Trait Implementations§
impl Freeze for InstrumentDefinition
impl RefUnwindSafe for InstrumentDefinition
impl Send for InstrumentDefinition
impl Sync for InstrumentDefinition
impl Unpin for InstrumentDefinition
impl UnwindSafe for InstrumentDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more