UIDragItemWrap.cs 5.9 KB

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