steam_enums/
easyncgamesessionuserstate.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 EAsyncGameSessionUserState {
6 Unknown = -1,
7 WaitingForOthers = 0,
8 ReadyForAction = 1,
9 Done = 2,
10}
11
12impl EAsyncGameSessionUserState {
13 pub fn from_i32(val: i32) -> Option<Self> {
14 match val {
15 x if x == Self::Unknown as i32 => Some(Self::Unknown),
16 x if x == Self::WaitingForOthers as i32 => Some(Self::WaitingForOthers),
17 x if x == Self::ReadyForAction as i32 => Some(Self::ReadyForAction),
18 x if x == Self::Done as i32 => Some(Self::Done),
19 _ => None,
20 }
21 }
22}