steam_enums/
egcbaseprotoobjecttypes.rs1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EGCBaseProtoObjectTypes {
6 PartyInvite = 1001,
7 LobbyInvite = 1002,
8}
9
10impl EGCBaseProtoObjectTypes {
11 pub fn from_i32(val: i32) -> Option<Self> {
12 match val {
13 x if x == Self::PartyInvite as i32 => Some(Self::PartyInvite),
14 x if x == Self::LobbyInvite as i32 => Some(Self::LobbyInvite),
15 _ => None,
16 }
17 }
18}