GuideMaskWrap.cs 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class GuideMaskWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(GuideMask), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("Init", Init);
  10. L.RegFunction("SetDefaultState", SetDefaultState);
  11. L.RegFunction("SetTargetInfoClose", SetTargetInfoClose);
  12. L.RegFunction("SetTargetInfoOpen", SetTargetInfoOpen);
  13. L.RegFunction("Dispose", Dispose);
  14. L.RegFunction("__eq", op_Equality);
  15. L.RegFunction("__tostring", ToLua.op_ToString);
  16. L.RegVar("startMask", get_startMask, set_startMask);
  17. L.RegVar("defaultDiameter", get_defaultDiameter, set_defaultDiameter);
  18. L.RegVar("maskTime", get_maskTime, set_maskTime);
  19. L.RegVar("target", get_target, set_target);
  20. L.RegVar("camera", get_camera, set_camera);
  21. L.EndClass();
  22. }
  23. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  24. static int Init(IntPtr L)
  25. {
  26. try
  27. {
  28. ToLua.CheckArgsCount(L, 4);
  29. GuideMask obj = (GuideMask)ToLua.CheckObject<GuideMask>(L, 1);
  30. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  31. LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
  32. UnityEngine.RectTransform arg2 = (UnityEngine.RectTransform)ToLua.CheckObject(L, 4, typeof(UnityEngine.RectTransform));
  33. obj.Init(arg0, arg1, arg2);
  34. return 0;
  35. }
  36. catch (Exception e)
  37. {
  38. return LuaDLL.toluaL_exception(L, e);
  39. }
  40. }
  41. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  42. static int SetDefaultState(IntPtr L)
  43. {
  44. try
  45. {
  46. ToLua.CheckArgsCount(L, 2);
  47. GuideMask obj = (GuideMask)ToLua.CheckObject<GuideMask>(L, 1);
  48. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  49. obj.SetDefaultState(arg0);
  50. return 0;
  51. }
  52. catch (Exception e)
  53. {
  54. return LuaDLL.toluaL_exception(L, e);
  55. }
  56. }
  57. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  58. static int SetTargetInfoClose(IntPtr L)
  59. {
  60. try
  61. {
  62. ToLua.CheckArgsCount(L, 4);
  63. GuideMask obj = (GuideMask)ToLua.CheckObject<GuideMask>(L, 1);
  64. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  65. UnityEngine.Vector2 arg1 = ToLua.ToVector2(L, 3);
  66. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  67. obj.SetTargetInfoClose(arg0, arg1, arg2);
  68. return 0;
  69. }
  70. catch (Exception e)
  71. {
  72. return LuaDLL.toluaL_exception(L, e);
  73. }
  74. }
  75. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  76. static int SetTargetInfoOpen(IntPtr L)
  77. {
  78. try
  79. {
  80. ToLua.CheckArgsCount(L, 4);
  81. GuideMask obj = (GuideMask)ToLua.CheckObject<GuideMask>(L, 1);
  82. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  83. UnityEngine.Vector2 arg1 = ToLua.ToVector2(L, 3);
  84. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  85. obj.SetTargetInfoOpen(arg0, arg1, arg2);
  86. return 0;
  87. }
  88. catch (Exception e)
  89. {
  90. return LuaDLL.toluaL_exception(L, e);
  91. }
  92. }
  93. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  94. static int Dispose(IntPtr L)
  95. {
  96. try
  97. {
  98. ToLua.CheckArgsCount(L, 1);
  99. GuideMask obj = (GuideMask)ToLua.CheckObject<GuideMask>(L, 1);
  100. obj.Dispose();
  101. return 0;
  102. }
  103. catch (Exception e)
  104. {
  105. return LuaDLL.toluaL_exception(L, e);
  106. }
  107. }
  108. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  109. static int op_Equality(IntPtr L)
  110. {
  111. try
  112. {
  113. ToLua.CheckArgsCount(L, 2);
  114. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  115. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  116. bool o = arg0 == arg1;
  117. LuaDLL.lua_pushboolean(L, o);
  118. return 1;
  119. }
  120. catch (Exception e)
  121. {
  122. return LuaDLL.toluaL_exception(L, e);
  123. }
  124. }
  125. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  126. static int get_startMask(IntPtr L)
  127. {
  128. object o = null;
  129. try
  130. {
  131. o = ToLua.ToObject(L, 1);
  132. GuideMask obj = (GuideMask)o;
  133. bool ret = obj.startMask;
  134. LuaDLL.lua_pushboolean(L, ret);
  135. return 1;
  136. }
  137. catch(Exception e)
  138. {
  139. return LuaDLL.toluaL_exception(L, e, o, "attempt to index startMask on a nil value");
  140. }
  141. }
  142. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  143. static int get_defaultDiameter(IntPtr L)
  144. {
  145. object o = null;
  146. try
  147. {
  148. o = ToLua.ToObject(L, 1);
  149. GuideMask obj = (GuideMask)o;
  150. float ret = obj.defaultDiameter;
  151. LuaDLL.lua_pushnumber(L, ret);
  152. return 1;
  153. }
  154. catch(Exception e)
  155. {
  156. return LuaDLL.toluaL_exception(L, e, o, "attempt to index defaultDiameter on a nil value");
  157. }
  158. }
  159. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  160. static int get_maskTime(IntPtr L)
  161. {
  162. object o = null;
  163. try
  164. {
  165. o = ToLua.ToObject(L, 1);
  166. GuideMask obj = (GuideMask)o;
  167. float ret = obj.maskTime;
  168. LuaDLL.lua_pushnumber(L, ret);
  169. return 1;
  170. }
  171. catch(Exception e)
  172. {
  173. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maskTime on a nil value");
  174. }
  175. }
  176. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  177. static int get_target(IntPtr L)
  178. {
  179. object o = null;
  180. try
  181. {
  182. o = ToLua.ToObject(L, 1);
  183. GuideMask obj = (GuideMask)o;
  184. UnityEngine.Transform ret = obj.target;
  185. ToLua.Push(L, ret);
  186. return 1;
  187. }
  188. catch(Exception e)
  189. {
  190. return LuaDLL.toluaL_exception(L, e, o, "attempt to index target on a nil value");
  191. }
  192. }
  193. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  194. static int get_camera(IntPtr L)
  195. {
  196. object o = null;
  197. try
  198. {
  199. o = ToLua.ToObject(L, 1);
  200. GuideMask obj = (GuideMask)o;
  201. UnityEngine.Camera ret = obj.camera;
  202. ToLua.PushSealed(L, ret);
  203. return 1;
  204. }
  205. catch(Exception e)
  206. {
  207. return LuaDLL.toluaL_exception(L, e, o, "attempt to index camera on a nil value");
  208. }
  209. }
  210. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  211. static int set_startMask(IntPtr L)
  212. {
  213. object o = null;
  214. try
  215. {
  216. o = ToLua.ToObject(L, 1);
  217. GuideMask obj = (GuideMask)o;
  218. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  219. obj.startMask = arg0;
  220. return 0;
  221. }
  222. catch(Exception e)
  223. {
  224. return LuaDLL.toluaL_exception(L, e, o, "attempt to index startMask on a nil value");
  225. }
  226. }
  227. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  228. static int set_defaultDiameter(IntPtr L)
  229. {
  230. object o = null;
  231. try
  232. {
  233. o = ToLua.ToObject(L, 1);
  234. GuideMask obj = (GuideMask)o;
  235. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  236. obj.defaultDiameter = arg0;
  237. return 0;
  238. }
  239. catch(Exception e)
  240. {
  241. return LuaDLL.toluaL_exception(L, e, o, "attempt to index defaultDiameter on a nil value");
  242. }
  243. }
  244. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  245. static int set_maskTime(IntPtr L)
  246. {
  247. object o = null;
  248. try
  249. {
  250. o = ToLua.ToObject(L, 1);
  251. GuideMask obj = (GuideMask)o;
  252. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  253. obj.maskTime = arg0;
  254. return 0;
  255. }
  256. catch(Exception e)
  257. {
  258. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maskTime on a nil value");
  259. }
  260. }
  261. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  262. static int set_target(IntPtr L)
  263. {
  264. object o = null;
  265. try
  266. {
  267. o = ToLua.ToObject(L, 1);
  268. GuideMask obj = (GuideMask)o;
  269. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject<UnityEngine.Transform>(L, 2);
  270. obj.target = arg0;
  271. return 0;
  272. }
  273. catch(Exception e)
  274. {
  275. return LuaDLL.toluaL_exception(L, e, o, "attempt to index target on a nil value");
  276. }
  277. }
  278. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  279. static int set_camera(IntPtr L)
  280. {
  281. object o = null;
  282. try
  283. {
  284. o = ToLua.ToObject(L, 1);
  285. GuideMask obj = (GuideMask)o;
  286. UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera));
  287. obj.camera = arg0;
  288. return 0;
  289. }
  290. catch(Exception e)
  291. {
  292. return LuaDLL.toluaL_exception(L, e, o, "attempt to index camera on a nil value");
  293. }
  294. }
  295. }