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 EAppType {
6 DepotOnly = -2147483648,
7 Invalid = 0,
8 Game = 1,
9 Application = 2,
10 Tool = 4,
11 Demo = 8,
12 Deprected = 16,
13 DLC = 32,
14 Guide = 64,
15 Driver = 128,
16 Config = 256,
17 Hardware = 512,
18 Franchise = 1024,
19 Video = 2048,
20 Plugin = 4096,
21 Music = 8192,
22 Series = 16384,
23 Comic = 32768,
24 Beta = 65536,
25 Shortcut = 1073741824,
26}
27
28impl EAppType {
29 pub fn from_i32(val: i32) -> Option<Self> {
30 match val {
31 x if x == Self::DepotOnly as i32 => Some(Self::DepotOnly),
32 x if x == Self::Invalid as i32 => Some(Self::Invalid),
33 x if x == Self::Game as i32 => Some(Self::Game),
34 x if x == Self::Application as i32 => Some(Self::Application),
35 x if x == Self::Tool as i32 => Some(Self::Tool),
36 x if x == Self::Demo as i32 => Some(Self::Demo),
37 x if x == Self::Deprected as i32 => Some(Self::Deprected),
38 x if x == Self::DLC as i32 => Some(Self::DLC),
39 x if x == Self::Guide as i32 => Some(Self::Guide),
40 x if x == Self::Driver as i32 => Some(Self::Driver),
41 x if x == Self::Config as i32 => Some(Self::Config),
42 x if x == Self::Hardware as i32 => Some(Self::Hardware),
43 x if x == Self::Franchise as i32 => Some(Self::Franchise),
44 x if x == Self::Video as i32 => Some(Self::Video),
45 x if x == Self::Plugin as i32 => Some(Self::Plugin),
46 x if x == Self::Music as i32 => Some(Self::Music),
47 x if x == Self::Series as i32 => Some(Self::Series),
48 x if x == Self::Comic as i32 => Some(Self::Comic),
49 x if x == Self::Beta as i32 => Some(Self::Beta),
50 x if x == Self::Shortcut as i32 => Some(Self::Shortcut),
51 _ => None,
52 }
53 }
54}