UnitySharedDecls.h
2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#pragma once
// The contents of this file are used when building both Unity library and the trampoline. Do not change it.
// Classes/Unity/UnityForwardDecls
typedef enum ScreenOrientation
{
orientationUnknown,
portrait,
portraitUpsideDown,
landscapeLeft,
landscapeRight,
orientationCount,
}
ScreenOrientation;
// be aware that this enum is shared with unity implementation so you should absolutely not change it
typedef enum DeviceGeneration
{
deviceUnknown = 0,
deviceiPhone3GS = 3,
deviceiPhone4 = 8,
deviceiPodTouch4Gen = 9,
deviceiPad2Gen = 10,
deviceiPhone4S = 11,
deviceiPad3Gen = 12,
deviceiPhone5 = 13,
deviceiPodTouch5Gen = 14,
deviceiPadMini1Gen = 15,
deviceiPad4Gen = 16,
deviceiPhone5C = 17,
deviceiPhone5S = 18,
deviceiPadAir1 = 19,
deviceiPadMini2Gen = 20,
deviceiPhone6 = 21,
deviceiPhone6Plus = 22,
deviceiPadMini3Gen = 23,
deviceiPadAir2 = 24,
deviceiPhone6S = 25,
deviceiPhone6SPlus = 26,
deviceiPadPro1Gen = 27,
deviceiPadMini4Gen = 28,
deviceiPhoneSE1Gen = 29,
deviceiPadPro10Inch1Gen = 30,
deviceiPhone7 = 31,
deviceiPhone7Plus = 32,
deviceiPodTouch6Gen = 33,
deviceiPad5Gen = 34,
deviceiPadPro2Gen = 35,
deviceiPadPro10Inch2Gen = 36,
deviceiPhone8 = 37,
deviceiPhone8Plus = 38,
deviceiPhoneX = 39,
deviceiPhoneXS = 40,
deviceiPhoneXSMax = 41,
deviceiPhoneXR = 42,
deviceiPadPro11Inch = 43,
deviceiPadPro3Gen = 44,
deviceiPad6Gen = 45,
deviceiPhone11 = 48,
deviceiPhone11Pro = 49,
deviceiPhone11ProMax = 50,
deviceiPodTouch7Gen = 51,
deviceiPad7Gen = 52,
deviceiPhoneUnknown = 10001,
deviceiPadUnknown = 10002,
deviceiPodTouchUnknown = 10003,
deviceAppleTV1Gen = 1001,
deviceAppleTV2Gen = 1002
}
DeviceGeneration;
// Classes/UI/SplashScreen.mm
#ifdef __cplusplus
struct OrientationMask
{
bool portrait;
bool portraitUpsideDown;
bool landscapeLeft;
bool landscapeRight;
};
#endif