源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

279 lines
7.0 KiB

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