SounddataT

Struct SounddataT 

Source
pub struct SounddataT {
Show 19 fields pub origin_x: Option<i32>, pub origin_y: Option<i32>, pub origin_z: Option<i32>, pub volume: Option<u32>, pub delay_value: Option<f32>, pub sequence_number: Option<i32>, pub entity_index: Option<i32>, pub channel: Option<i32>, pub pitch: Option<i32>, pub flags: Option<i32>, pub sound_num: Option<u32>, pub sound_num_handle: Option<u32>, pub speaker_entity: Option<i32>, pub random_seed: Option<i32>, pub sound_level: Option<i32>, pub is_sentence: Option<bool>, pub is_ambient: Option<bool>, pub guid: Option<u32>, pub sound_resource_id: Option<u64>,
}

Fields§

§origin_x: Option<i32>§origin_y: Option<i32>§origin_z: Option<i32>§volume: Option<u32>§delay_value: Option<f32>§sequence_number: Option<i32>§entity_index: Option<i32>§channel: Option<i32>§pitch: Option<i32>§flags: Option<i32>§sound_num: Option<u32>§sound_num_handle: Option<u32>§speaker_entity: Option<i32>§random_seed: Option<i32>§sound_level: Option<i32>§is_sentence: Option<bool>§is_ambient: Option<bool>§guid: Option<u32>§sound_resource_id: Option<u64>

Implementations§

Source§

impl SounddataT

Source

pub fn origin_x(&self) -> i32

Returns the value of origin_x, or the default value if origin_x is unset.

Source

pub fn origin_y(&self) -> i32

Returns the value of origin_y, or the default value if origin_y is unset.

Source

pub fn origin_z(&self) -> i32

Returns the value of origin_z, or the default value if origin_z is unset.

Source

pub fn volume(&self) -> u32

Returns the value of volume, or the default value if volume is unset.

Source

pub fn delay_value(&self) -> f32

Returns the value of delay_value, or the default value if delay_value is unset.

Source

pub fn sequence_number(&self) -> i32

Returns the value of sequence_number, or the default value if sequence_number is unset.

Source

pub fn entity_index(&self) -> i32

Returns the value of entity_index, or the default value if entity_index is unset.

Source

pub fn channel(&self) -> i32

Returns the value of channel, or the default value if channel is unset.

Source

pub fn pitch(&self) -> i32

Returns the value of pitch, or the default value if pitch is unset.

Source

pub fn flags(&self) -> i32

Returns the value of flags, or the default value if flags is unset.

Source

pub fn sound_num(&self) -> u32

Returns the value of sound_num, or the default value if sound_num is unset.

Source

pub fn sound_num_handle(&self) -> u32

Returns the value of sound_num_handle, or the default value if sound_num_handle is unset.

Source

pub fn speaker_entity(&self) -> i32

Returns the value of speaker_entity, or the default value if speaker_entity is unset.

Source

pub fn random_seed(&self) -> i32

Returns the value of random_seed, or the default value if random_seed is unset.

Source

pub fn sound_level(&self) -> i32

Returns the value of sound_level, or the default value if sound_level is unset.

Source

pub fn is_sentence(&self) -> bool

Returns the value of is_sentence, or the default value if is_sentence is unset.

Source

pub fn is_ambient(&self) -> bool

Returns the value of is_ambient, or the default value if is_ambient is unset.

Source

pub fn guid(&self) -> u32

Returns the value of guid, or the default value if guid is unset.

Source

pub fn sound_resource_id(&self) -> u64

Returns the value of sound_resource_id, or the default value if sound_resource_id is unset.

Trait Implementations§

Source§

impl Clone for SounddataT

Source§

fn clone(&self) -> SounddataT

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SounddataT

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for SounddataT

Source§

fn default() -> SounddataT

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SounddataT

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<SounddataT, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Message for SounddataT

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for SounddataT

Source§

fn eq(&self, other: &SounddataT) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SounddataT

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for SounddataT

Source§

impl StructuralPartialEq for SounddataT

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,