Skip to main content

steam_enums/
ebaseentitymessages.rs

1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EBaseEntityMessages {
6    PlayJingle = 136,
7    ScreenOverlay = 137,
8    RemoveAllDecals = 138,
9    PropagateForce = 139,
10    DoSpark = 140,
11    FixAngle = 141,
12}
13
14impl EBaseEntityMessages {
15    pub fn from_i32(val: i32) -> Option<Self> {
16        match val {
17            x if x == Self::PlayJingle as i32 => Some(Self::PlayJingle),
18            x if x == Self::ScreenOverlay as i32 => Some(Self::ScreenOverlay),
19            x if x == Self::RemoveAllDecals as i32 => Some(Self::RemoveAllDecals),
20            x if x == Self::PropagateForce as i32 => Some(Self::PropagateForce),
21            x if x == Self::DoSpark as i32 => Some(Self::DoSpark),
22            x if x == Self::FixAngle as i32 => Some(Self::FixAngle),
23            _ => None,
24        }
25    }
26}