UIJoystickWrap.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UIJoystickWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UIJoystick), typeof(UnityEngine.EventSystems.UIBehaviour), "UIJoystick");
  9. L.RegFunction("__eq", op_Equality);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("canvas", get_canvas, set_canvas);
  12. L.RegVar("scaleTrans", get_scaleTrans, set_scaleTrans);
  13. L.RegVar("maxLenght", get_maxLenght, set_maxLenght);
  14. L.RegVar("walkToRunLength", get_walkToRunLength, set_walkToRunLength);
  15. L.RegVar("onDragEvent", get_onDragEvent, null);
  16. L.EndClass();
  17. }
  18. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  19. static int op_Equality(IntPtr L)
  20. {
  21. try
  22. {
  23. ToLua.CheckArgsCount(L, 2);
  24. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  25. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  26. bool o = arg0 == arg1;
  27. LuaDLL.lua_pushboolean(L, o);
  28. return 1;
  29. }
  30. catch (Exception e)
  31. {
  32. return LuaDLL.toluaL_exception(L, e);
  33. }
  34. }
  35. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  36. static int get_canvas(IntPtr L)
  37. {
  38. object o = null;
  39. try
  40. {
  41. o = ToLua.ToObject(L, 1);
  42. UIJoystick obj = (UIJoystick)o;
  43. UnityEngine.Canvas ret = obj.canvas;
  44. ToLua.PushSealed(L, ret);
  45. return 1;
  46. }
  47. catch(Exception e)
  48. {
  49. return LuaDLL.toluaL_exception(L, e, o, "attempt to index canvas on a nil value");
  50. }
  51. }
  52. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  53. static int get_scaleTrans(IntPtr L)
  54. {
  55. object o = null;
  56. try
  57. {
  58. o = ToLua.ToObject(L, 1);
  59. UIJoystick obj = (UIJoystick)o;
  60. UnityEngine.RectTransform ret = obj.scaleTrans;
  61. ToLua.PushSealed(L, ret);
  62. return 1;
  63. }
  64. catch(Exception e)
  65. {
  66. return LuaDLL.toluaL_exception(L, e, o, "attempt to index scaleTrans on a nil value");
  67. }
  68. }
  69. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  70. static int get_maxLenght(IntPtr L)
  71. {
  72. object o = null;
  73. try
  74. {
  75. o = ToLua.ToObject(L, 1);
  76. UIJoystick obj = (UIJoystick)o;
  77. float ret = obj.maxLenght;
  78. LuaDLL.lua_pushnumber(L, ret);
  79. return 1;
  80. }
  81. catch(Exception e)
  82. {
  83. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxLenght on a nil value");
  84. }
  85. }
  86. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  87. static int get_walkToRunLength(IntPtr L)
  88. {
  89. object o = null;
  90. try
  91. {
  92. o = ToLua.ToObject(L, 1);
  93. UIJoystick obj = (UIJoystick)o;
  94. float ret = obj.walkToRunLength;
  95. LuaDLL.lua_pushnumber(L, ret);
  96. return 1;
  97. }
  98. catch(Exception e)
  99. {
  100. return LuaDLL.toluaL_exception(L, e, o, "attempt to index walkToRunLength on a nil value");
  101. }
  102. }
  103. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  104. static int get_onDragEvent(IntPtr L)
  105. {
  106. object o = null;
  107. try
  108. {
  109. o = ToLua.ToObject(L, 1);
  110. UIJoystick obj = (UIJoystick)o;
  111. UIJoystick.OnDragEvent ret = obj.onDragEvent;
  112. ToLua.PushObject(L, ret);
  113. return 1;
  114. }
  115. catch(Exception e)
  116. {
  117. return LuaDLL.toluaL_exception(L, e, o, "attempt to index onDragEvent on a nil value");
  118. }
  119. }
  120. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  121. static int set_canvas(IntPtr L)
  122. {
  123. object o = null;
  124. try
  125. {
  126. o = ToLua.ToObject(L, 1);
  127. UIJoystick obj = (UIJoystick)o;
  128. UnityEngine.Canvas arg0 = (UnityEngine.Canvas)ToLua.CheckObject(L, 2, typeof(UnityEngine.Canvas));
  129. obj.canvas = arg0;
  130. return 0;
  131. }
  132. catch(Exception e)
  133. {
  134. return LuaDLL.toluaL_exception(L, e, o, "attempt to index canvas on a nil value");
  135. }
  136. }
  137. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  138. static int set_scaleTrans(IntPtr L)
  139. {
  140. object o = null;
  141. try
  142. {
  143. o = ToLua.ToObject(L, 1);
  144. UIJoystick obj = (UIJoystick)o;
  145. UnityEngine.RectTransform arg0 = (UnityEngine.RectTransform)ToLua.CheckObject(L, 2, typeof(UnityEngine.RectTransform));
  146. obj.scaleTrans = arg0;
  147. return 0;
  148. }
  149. catch(Exception e)
  150. {
  151. return LuaDLL.toluaL_exception(L, e, o, "attempt to index scaleTrans on a nil value");
  152. }
  153. }
  154. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  155. static int set_maxLenght(IntPtr L)
  156. {
  157. object o = null;
  158. try
  159. {
  160. o = ToLua.ToObject(L, 1);
  161. UIJoystick obj = (UIJoystick)o;
  162. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  163. obj.maxLenght = arg0;
  164. return 0;
  165. }
  166. catch(Exception e)
  167. {
  168. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxLenght on a nil value");
  169. }
  170. }
  171. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  172. static int set_walkToRunLength(IntPtr L)
  173. {
  174. object o = null;
  175. try
  176. {
  177. o = ToLua.ToObject(L, 1);
  178. UIJoystick obj = (UIJoystick)o;
  179. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  180. obj.walkToRunLength = arg0;
  181. return 0;
  182. }
  183. catch(Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e, o, "attempt to index walkToRunLength on a nil value");
  186. }
  187. }
  188. }