#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum EGetGamesAlgorithm {
Default = 1,
MostPlayed = 2,
PopularNew = 3,
}
impl EGetGamesAlgorithm {
pub fn from_i32(val: i32) -> Option<Self> {
match val {
x if x == Self::Default as i32 => Some(Self::Default),
x if x == Self::MostPlayed as i32 => Some(Self::MostPlayed),
x if x == Self::PopularNew as i32 => Some(Self::PopularNew),
_ => None,
}
}
}