UnityEngine_TextAnchorWrap.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_TextAnchorWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginEnum(typeof(UnityEngine.TextAnchor), "TextAnchor");
  9. L.RegVar("UpperLeft", get_UpperLeft, null);
  10. L.RegVar("UpperCenter", get_UpperCenter, null);
  11. L.RegVar("UpperRight", get_UpperRight, null);
  12. L.RegVar("MiddleLeft", get_MiddleLeft, null);
  13. L.RegVar("MiddleCenter", get_MiddleCenter, null);
  14. L.RegVar("MiddleRight", get_MiddleRight, null);
  15. L.RegVar("LowerLeft", get_LowerLeft, null);
  16. L.RegVar("LowerCenter", get_LowerCenter, null);
  17. L.RegVar("LowerRight", get_LowerRight, null);
  18. L.RegFunction("IntToEnum", IntToEnum);
  19. L.EndEnum();
  20. TypeTraits<UnityEngine.TextAnchor>.Check = CheckType;
  21. StackTraits<UnityEngine.TextAnchor>.Push = Push;
  22. }
  23. static void Push(IntPtr L, UnityEngine.TextAnchor arg)
  24. {
  25. ToLua.Push(L, arg);
  26. }
  27. static bool CheckType(IntPtr L, int pos)
  28. {
  29. return TypeChecker.CheckEnumType(typeof(UnityEngine.TextAnchor), L, pos);
  30. }
  31. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  32. static int get_UpperLeft(IntPtr L)
  33. {
  34. ToLua.Push(L, UnityEngine.TextAnchor.UpperLeft);
  35. return 1;
  36. }
  37. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  38. static int get_UpperCenter(IntPtr L)
  39. {
  40. ToLua.Push(L, UnityEngine.TextAnchor.UpperCenter);
  41. return 1;
  42. }
  43. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  44. static int get_UpperRight(IntPtr L)
  45. {
  46. ToLua.Push(L, UnityEngine.TextAnchor.UpperRight);
  47. return 1;
  48. }
  49. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  50. static int get_MiddleLeft(IntPtr L)
  51. {
  52. ToLua.Push(L, UnityEngine.TextAnchor.MiddleLeft);
  53. return 1;
  54. }
  55. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  56. static int get_MiddleCenter(IntPtr L)
  57. {
  58. ToLua.Push(L, UnityEngine.TextAnchor.MiddleCenter);
  59. return 1;
  60. }
  61. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  62. static int get_MiddleRight(IntPtr L)
  63. {
  64. ToLua.Push(L, UnityEngine.TextAnchor.MiddleRight);
  65. return 1;
  66. }
  67. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  68. static int get_LowerLeft(IntPtr L)
  69. {
  70. ToLua.Push(L, UnityEngine.TextAnchor.LowerLeft);
  71. return 1;
  72. }
  73. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  74. static int get_LowerCenter(IntPtr L)
  75. {
  76. ToLua.Push(L, UnityEngine.TextAnchor.LowerCenter);
  77. return 1;
  78. }
  79. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  80. static int get_LowerRight(IntPtr L)
  81. {
  82. ToLua.Push(L, UnityEngine.TextAnchor.LowerRight);
  83. return 1;
  84. }
  85. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  86. static int IntToEnum(IntPtr L)
  87. {
  88. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  89. UnityEngine.TextAnchor o = (UnityEngine.TextAnchor)arg0;
  90. ToLua.Push(L, o);
  91. return 1;
  92. }
  93. }