pub struct CMsgPlaceDecalEvent {Show 13 fields
pub position: Option<CMsgVector>,
pub normal: Option<CMsgVector>,
pub saxis: Option<CMsgVector>,
pub boneindex: Option<i32>,
pub triangleindex: Option<i32>,
pub flags: Option<u32>,
pub color: Option<u32>,
pub random_seed: Option<i32>,
pub decal_group_name: Option<u32>,
pub size_override: Option<f32>,
pub entityhandle: Option<u32>,
pub material_id: Option<u64>,
pub sequence_name: Option<u32>,
}Fields§
§position: Option<CMsgVector>§normal: Option<CMsgVector>§saxis: Option<CMsgVector>§boneindex: Option<i32>§triangleindex: Option<i32>§flags: Option<u32>§color: Option<u32>§random_seed: Option<i32>§decal_group_name: Option<u32>§size_override: Option<f32>§entityhandle: Option<u32>§material_id: Option<u64>§sequence_name: Option<u32>Implementations§
Source§impl CMsgPlaceDecalEvent
impl CMsgPlaceDecalEvent
Sourcepub fn boneindex(&self) -> i32
pub fn boneindex(&self) -> i32
Returns the value of boneindex, or the default value if boneindex is unset.
Sourcepub fn random_seed(&self) -> i32
pub fn random_seed(&self) -> i32
Returns the value of random_seed, or the default value if random_seed is unset.
Sourcepub fn decal_group_name(&self) -> u32
pub fn decal_group_name(&self) -> u32
Returns the value of decal_group_name, or the default value if decal_group_name is unset.
Sourcepub fn size_override(&self) -> f32
pub fn size_override(&self) -> f32
Returns the value of size_override, or the default value if size_override is unset.
Sourcepub fn entityhandle(&self) -> u32
pub fn entityhandle(&self) -> u32
Returns the value of entityhandle, or the default value if entityhandle is unset.
Sourcepub fn material_id(&self) -> u64
pub fn material_id(&self) -> u64
Returns the value of material_id, or the default value if material_id is unset.
Sourcepub fn sequence_name(&self) -> u32
pub fn sequence_name(&self) -> u32
Returns the value of sequence_name, or the default value if sequence_name is unset.
Sourcepub fn triangleindex(&self) -> i32
pub fn triangleindex(&self) -> i32
Returns the value of triangleindex, or the default value if triangleindex is unset.
Trait Implementations§
Source§impl Clone for CMsgPlaceDecalEvent
impl Clone for CMsgPlaceDecalEvent
Source§fn clone(&self) -> CMsgPlaceDecalEvent
fn clone(&self) -> CMsgPlaceDecalEvent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CMsgPlaceDecalEvent
impl Debug for CMsgPlaceDecalEvent
Source§impl Default for CMsgPlaceDecalEvent
impl Default for CMsgPlaceDecalEvent
Source§fn default() -> CMsgPlaceDecalEvent
fn default() -> CMsgPlaceDecalEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CMsgPlaceDecalEvent
impl<'de> Deserialize<'de> for CMsgPlaceDecalEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CMsgPlaceDecalEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CMsgPlaceDecalEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for CMsgPlaceDecalEvent
impl Message for CMsgPlaceDecalEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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,
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,
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,
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,
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,
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,
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 moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
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 CMsgPlaceDecalEvent
impl PartialEq for CMsgPlaceDecalEvent
Source§impl Serialize for CMsgPlaceDecalEvent
impl Serialize for CMsgPlaceDecalEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
impl Copy for CMsgPlaceDecalEvent
impl StructuralPartialEq for CMsgPlaceDecalEvent
Auto Trait Implementations§
impl Freeze for CMsgPlaceDecalEvent
impl RefUnwindSafe for CMsgPlaceDecalEvent
impl Send for CMsgPlaceDecalEvent
impl Sync for CMsgPlaceDecalEvent
impl Unpin for CMsgPlaceDecalEvent
impl UnwindSafe for CMsgPlaceDecalEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)