UnitySharedDecls.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. deviceiPhone11 = 48,
  58. deviceiPhone11Pro = 49,
  59. deviceiPhone11ProMax = 50,
  60. deviceiPodTouch7Gen = 51,
  61. deviceiPad7Gen = 52,
  62. deviceiPhoneUnknown = 10001,
  63. deviceiPadUnknown = 10002,
  64. deviceiPodTouchUnknown = 10003,
  65. deviceAppleTV1Gen = 1001,
  66. deviceAppleTV2Gen = 1002
  67. }
  68. DeviceGeneration;
  69. // Classes/UI/SplashScreen.mm
  70. #ifdef __cplusplus
  71. struct OrientationMask
  72. {
  73. bool portrait;
  74. bool portraitUpsideDown;
  75. bool landscapeLeft;
  76. bool landscapeRight;
  77. };
  78. #endif