RolRectTransformWrap.cs 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class RolRectTransformWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(RolRectTransform), typeof(UnityEngine.MonoBehaviour), "RolRectTransform");
  9. L.RegFunction("SetMaxSpeed", SetMaxSpeed);
  10. L.RegFunction("ClearNewRangeSpeed", ClearNewRangeSpeed);
  11. L.RegFunction("AddNewRangeSpeed", AddNewRangeSpeed);
  12. L.RegFunction("Reset", Reset);
  13. L.RegFunction("Run", Run);
  14. L.RegFunction("CalStopTime", CalStopTime);
  15. L.RegFunction("Stop", Stop);
  16. L.RegFunction("SetAngle", SetAngle);
  17. L.RegFunction("SetStopIndex", SetStopIndex);
  18. L.RegFunction("__eq", op_Equality);
  19. L.RegFunction("__tostring", ToLua.op_ToString);
  20. L.RegVar("mSelectAction", get_mSelectAction, set_mSelectAction);
  21. L.RegVar("mFinishAction", get_mFinishAction, set_mFinishAction);
  22. L.EndClass();
  23. }
  24. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  25. static int SetMaxSpeed(IntPtr L)
  26. {
  27. try
  28. {
  29. ToLua.CheckArgsCount(L, 2);
  30. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  31. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  32. obj.SetMaxSpeed(arg0);
  33. return 0;
  34. }
  35. catch (Exception e)
  36. {
  37. return LuaDLL.toluaL_exception(L, e);
  38. }
  39. }
  40. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  41. static int ClearNewRangeSpeed(IntPtr L)
  42. {
  43. try
  44. {
  45. ToLua.CheckArgsCount(L, 1);
  46. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  47. obj.ClearNewRangeSpeed();
  48. return 0;
  49. }
  50. catch (Exception e)
  51. {
  52. return LuaDLL.toluaL_exception(L, e);
  53. }
  54. }
  55. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  56. static int AddNewRangeSpeed(IntPtr L)
  57. {
  58. try
  59. {
  60. ToLua.CheckArgsCount(L, 5);
  61. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  62. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  63. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  64. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  65. float arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
  66. obj.AddNewRangeSpeed(arg0, arg1, arg2, arg3);
  67. return 0;
  68. }
  69. catch (Exception e)
  70. {
  71. return LuaDLL.toluaL_exception(L, e);
  72. }
  73. }
  74. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  75. static int Reset(IntPtr L)
  76. {
  77. try
  78. {
  79. ToLua.CheckArgsCount(L, 1);
  80. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  81. obj.Reset();
  82. return 0;
  83. }
  84. catch (Exception e)
  85. {
  86. return LuaDLL.toluaL_exception(L, e);
  87. }
  88. }
  89. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  90. static int Run(IntPtr L)
  91. {
  92. try
  93. {
  94. ToLua.CheckArgsCount(L, 2);
  95. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  96. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  97. obj.Run(arg0);
  98. return 0;
  99. }
  100. catch (Exception e)
  101. {
  102. return LuaDLL.toluaL_exception(L, e);
  103. }
  104. }
  105. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  106. static int CalStopTime(IntPtr L)
  107. {
  108. try
  109. {
  110. ToLua.CheckArgsCount(L, 1);
  111. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  112. obj.CalStopTime();
  113. return 0;
  114. }
  115. catch (Exception e)
  116. {
  117. return LuaDLL.toluaL_exception(L, e);
  118. }
  119. }
  120. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  121. static int Stop(IntPtr L)
  122. {
  123. try
  124. {
  125. ToLua.CheckArgsCount(L, 1);
  126. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  127. obj.Stop();
  128. return 0;
  129. }
  130. catch (Exception e)
  131. {
  132. return LuaDLL.toluaL_exception(L, e);
  133. }
  134. }
  135. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  136. static int SetAngle(IntPtr L)
  137. {
  138. try
  139. {
  140. ToLua.CheckArgsCount(L, 4);
  141. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  142. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  143. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  144. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  145. obj.SetAngle(arg0, arg1, arg2);
  146. return 0;
  147. }
  148. catch (Exception e)
  149. {
  150. return LuaDLL.toluaL_exception(L, e);
  151. }
  152. }
  153. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  154. static int SetStopIndex(IntPtr L)
  155. {
  156. try
  157. {
  158. ToLua.CheckArgsCount(L, 2);
  159. RolRectTransform obj = (RolRectTransform)ToLua.CheckObject<RolRectTransform>(L, 1);
  160. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  161. obj.SetStopIndex(arg0);
  162. return 0;
  163. }
  164. catch (Exception e)
  165. {
  166. return LuaDLL.toluaL_exception(L, e);
  167. }
  168. }
  169. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  170. static int op_Equality(IntPtr L)
  171. {
  172. try
  173. {
  174. ToLua.CheckArgsCount(L, 2);
  175. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  176. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  177. bool o = arg0 == arg1;
  178. LuaDLL.lua_pushboolean(L, o);
  179. return 1;
  180. }
  181. catch (Exception e)
  182. {
  183. return LuaDLL.toluaL_exception(L, e);
  184. }
  185. }
  186. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  187. static int get_mSelectAction(IntPtr L)
  188. {
  189. object o = null;
  190. try
  191. {
  192. o = ToLua.ToObject(L, 1);
  193. RolRectTransform obj = (RolRectTransform)o;
  194. System.Action<int> ret = obj.mSelectAction;
  195. ToLua.Push(L, ret);
  196. return 1;
  197. }
  198. catch(Exception e)
  199. {
  200. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSelectAction on a nil value");
  201. }
  202. }
  203. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  204. static int get_mFinishAction(IntPtr L)
  205. {
  206. object o = null;
  207. try
  208. {
  209. o = ToLua.ToObject(L, 1);
  210. RolRectTransform obj = (RolRectTransform)o;
  211. System.Action<int> ret = obj.mFinishAction;
  212. ToLua.Push(L, ret);
  213. return 1;
  214. }
  215. catch(Exception e)
  216. {
  217. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mFinishAction on a nil value");
  218. }
  219. }
  220. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  221. static int set_mSelectAction(IntPtr L)
  222. {
  223. object o = null;
  224. try
  225. {
  226. o = ToLua.ToObject(L, 1);
  227. RolRectTransform obj = (RolRectTransform)o;
  228. System.Action<int> arg0 = (System.Action<int>)ToLua.CheckDelegate<System.Action<int>>(L, 2);
  229. obj.mSelectAction = arg0;
  230. return 0;
  231. }
  232. catch(Exception e)
  233. {
  234. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mSelectAction on a nil value");
  235. }
  236. }
  237. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  238. static int set_mFinishAction(IntPtr L)
  239. {
  240. object o = null;
  241. try
  242. {
  243. o = ToLua.ToObject(L, 1);
  244. RolRectTransform obj = (RolRectTransform)o;
  245. System.Action<int> arg0 = (System.Action<int>)ToLua.CheckDelegate<System.Action<int>>(L, 2);
  246. obj.mFinishAction = arg0;
  247. return 0;
  248. }
  249. catch(Exception e)
  250. {
  251. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mFinishAction on a nil value");
  252. }
  253. }
  254. }