UnitySharedDecls.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #pragma once
  2. // The contents of this file are used when building both Unity library and the trampoline. Do not change it.
  3. // Classes/Unity/UnityForwardDecls
  4. typedef enum ScreenOrientation
  5. {
  6. orientationUnknown,
  7. portrait,
  8. portraitUpsideDown,
  9. landscapeLeft,
  10. landscapeRight,
  11. orientationCount,
  12. }
  13. ScreenOrientation;
  14. // be aware that this enum is shared with unity implementation so you should absolutely not change it
  15. typedef enum DeviceGeneration
  16. {
  17. deviceUnknown = 0,
  18. deviceiPhone3GS = 3,
  19. deviceiPhone4 = 8,
  20. deviceiPodTouch4Gen = 9,
  21. deviceiPad2Gen = 10,
  22. deviceiPhone4S = 11,
  23. deviceiPad3Gen = 12,
  24. deviceiPhone5 = 13,
  25. deviceiPodTouch5Gen = 14,
  26. deviceiPadMini1Gen = 15,
  27. deviceiPad4Gen = 16,
  28. deviceiPhone5C = 17,
  29. deviceiPhone5S = 18,
  30. deviceiPadAir1 = 19,
  31. deviceiPadMini2Gen = 20,
  32. deviceiPhone6 = 21,
  33. deviceiPhone6Plus = 22,
  34. deviceiPadMini3Gen = 23,
  35. deviceiPadAir2 = 24,
  36. deviceiPhone6S = 25,
  37. deviceiPhone6SPlus = 26,
  38. deviceiPadPro1Gen = 27,
  39. deviceiPadMini4Gen = 28,
  40. deviceiPhoneSE1Gen = 29,
  41. deviceiPadPro10Inch1Gen = 30,
  42. deviceiPhone7 = 31,
  43. deviceiPhone7Plus = 32,
  44. deviceiPodTouch6Gen = 33,
  45. deviceiPad5Gen = 34,
  46. deviceiPadPro2Gen = 35,
  47. deviceiPadPro10Inch2Gen = 36,
  48. deviceiPhone8 = 37,
  49. deviceiPhone8Plus = 38,
  50. deviceiPhoneX = 39,
  51. deviceiPhoneXS = 40,
  52. deviceiPhoneXSMax = 41,
  53. deviceiPhoneXR = 42,
  54. deviceiPadPro11Inch = 43,
  55. deviceiPadPro3Gen = 44,
  56. deviceiPad6Gen = 45,
  57. deviceiPadAir3Gen = 46,
  58. deviceiPadMini5Gen = 47,
  59. deviceiPhone11 = 48,
  60. deviceiPhone11Pro = 49,
  61. deviceiPhone11ProMax = 50,
  62. deviceiPodTouch7Gen = 51,
  63. deviceiPad7Gen = 52,
  64. deviceiPhoneSE2Gen = 53,
  65. deviceiPadPro11Inch2Gen = 54,
  66. deviceiPadPro4Gen = 55,
  67. deviceiPhone12Mini = 56,
  68. deviceiPhone12 = 57,
  69. deviceiPhone12Pro = 58,
  70. deviceiPhone12ProMax = 59,
  71. deviceiPad8Gen = 60,
  72. deviceiPadAir4Gen = 61,
  73. deviceiPad9Gen = 62,
  74. deviceiPadMini6Gen = 63,
  75. deviceiPhone13 = 64,
  76. deviceiPhone13Mini = 65,
  77. deviceiPhone13Pro = 66,
  78. deviceiPhone13ProMax = 67,
  79. deviceiPadPro5Gen = 68,
  80. deviceiPadPro11Inch3Gen = 69,
  81. deviceiPhoneSE3Gen = 70,
  82. deviceiPadAir5Gen = 71,
  83. deviceiPhone14 = 72,
  84. deviceiPhone14Plus = 73,
  85. deviceiPhone14Pro = 74,
  86. deviceiPhone14ProMax = 75,
  87. deviceiPadPro6Gen = 76,
  88. deviceiPadPro11Inch4Gen = 77,
  89. deviceiPad10Gen = 78,
  90. deviceiPhoneUnknown = 10001,
  91. deviceiPadUnknown = 10002,
  92. deviceiPodTouchUnknown = 10003,
  93. deviceAppleTV1Gen = 1001,
  94. deviceAppleTVHD = 1001,
  95. deviceAppleTV2Gen = 1002,
  96. deviceAppleTV4K = 1002,
  97. deviceAppleTV4K2Gen = 1003,
  98. deviceAppleTV4K3Gen = 1004,
  99. }
  100. DeviceGeneration;
  101. // Classes/UI/SplashScreen.mm
  102. #ifdef __cplusplus
  103. struct OrientationMask
  104. {
  105. bool portrait;
  106. bool portraitUpsideDown;
  107. bool landscapeLeft;
  108. bool landscapeRight;
  109. };
  110. #endif