AddFan

Struct AddFan 

Source
pub struct AddFan {
Show 18 fields pub active: Option<bool>, pub bounds_mins: Option<CMsgVector>, pub bounds_maxs: Option<CMsgVector>, pub fan_origin: Option<CMsgVector>, pub fan_origin_offset: Option<CMsgVector>, pub fan_direction: Option<CMsgVector>, pub force: Option<f32>, pub fan_force_curve: Option<String>, pub falloff: Option<bool>, pub pull_towards_point: Option<bool>, pub curve_min_dist: Option<f32>, pub curve_max_dist: Option<f32>, pub fan_type: Option<u32>, pub cone_start_radius: Option<f32>, pub cone_end_radius: Option<f32>, pub cone_length: Option<f32>, pub entity_handle: Option<u32>, pub attachment_name: Option<String>,
}

Fields§

§active: Option<bool>§bounds_mins: Option<CMsgVector>§bounds_maxs: Option<CMsgVector>§fan_origin: Option<CMsgVector>§fan_origin_offset: Option<CMsgVector>§fan_direction: Option<CMsgVector>§force: Option<f32>§fan_force_curve: Option<String>§falloff: Option<bool>§pull_towards_point: Option<bool>§curve_min_dist: Option<f32>§curve_max_dist: Option<f32>§fan_type: Option<u32>§cone_start_radius: Option<f32>§cone_end_radius: Option<f32>§cone_length: Option<f32>§entity_handle: Option<u32>§attachment_name: Option<String>

Implementations§

Source§

impl AddFan

Source

pub fn active(&self) -> bool

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

Source

pub fn force(&self) -> f32

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

Source

pub fn fan_force_curve(&self) -> &str

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

Source

pub fn falloff(&self) -> bool

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

Source

pub fn pull_towards_point(&self) -> bool

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

Source

pub fn curve_min_dist(&self) -> f32

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

Source

pub fn curve_max_dist(&self) -> f32

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

Source

pub fn fan_type(&self) -> u32

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

Source

pub fn cone_start_radius(&self) -> f32

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

Source

pub fn cone_end_radius(&self) -> f32

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

Source

pub fn cone_length(&self) -> f32

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

Source

pub fn entity_handle(&self) -> u32

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

Source

pub fn attachment_name(&self) -> &str

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

Trait Implementations§

Source§

impl Clone for AddFan

Source§

fn clone(&self) -> AddFan

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 AddFan

Source§

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

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

impl Default for AddFan

Source§

fn default() -> AddFan

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

impl<'de> Deserialize<'de> for AddFan

Source§

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

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

impl Message for AddFan

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 AddFan

Source§

fn eq(&self, other: &AddFan) -> 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 AddFan

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 StructuralPartialEq for AddFan

Auto Trait Implementations§

§

impl Freeze for AddFan

§

impl RefUnwindSafe for AddFan

§

impl Send for AddFan

§

impl Sync for AddFan

§

impl Unpin for AddFan

§

impl UnwindSafe for AddFan

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>,