UnityEngine_ComponentWrap.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using DG.Tweening;
  4. using LuaInterface;
  5. public class UnityEngine_ComponentWrap
  6. {
  7. public static void Register(LuaState L)
  8. {
  9. L.BeginClass(typeof(UnityEngine.Component), typeof(UnityEngine.Object));
  10. L.RegFunction("GetComponent", GetComponent);
  11. L.RegFunction("GetComponentInChildren", GetComponentInChildren);
  12. L.RegFunction("GetComponentsInChildren", GetComponentsInChildren);
  13. L.RegFunction("GetComponentInParent", GetComponentInParent);
  14. L.RegFunction("GetComponentsInParent", GetComponentsInParent);
  15. L.RegFunction("GetComponents", GetComponents);
  16. L.RegFunction("CompareTag", CompareTag);
  17. L.RegFunction("SendMessageUpwards", SendMessageUpwards);
  18. L.RegFunction("SendMessage", SendMessage);
  19. L.RegFunction("BroadcastMessage", BroadcastMessage);
  20. L.RegFunction("DOTogglePause", DOTogglePause);
  21. L.RegFunction("DOSmoothRewind", DOSmoothRewind);
  22. L.RegFunction("DORewind", DORewind);
  23. L.RegFunction("DORestart", DORestart);
  24. L.RegFunction("DOPlayForward", DOPlayForward);
  25. L.RegFunction("DOPlayBackwards", DOPlayBackwards);
  26. L.RegFunction("DOPlay", DOPlay);
  27. L.RegFunction("DOPause", DOPause);
  28. L.RegFunction("DOGoto", DOGoto);
  29. L.RegFunction("DOFlip", DOFlip);
  30. L.RegFunction("DOKill", DOKill);
  31. L.RegFunction("DOComplete", DOComplete);
  32. L.RegFunction("New", _CreateUnityEngine_Component);
  33. L.RegFunction("__eq", op_Equality);
  34. L.RegFunction("__tostring", ToLua.op_ToString);
  35. L.RegVar("transform", get_transform, null);
  36. L.RegVar("gameObject", get_gameObject, null);
  37. L.RegVar("tag", get_tag, set_tag);
  38. L.EndClass();
  39. }
  40. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  41. static int _CreateUnityEngine_Component(IntPtr L)
  42. {
  43. try
  44. {
  45. int count = LuaDLL.lua_gettop(L);
  46. if (count == 0)
  47. {
  48. UnityEngine.Component obj = new UnityEngine.Component();
  49. ToLua.Push(L, obj);
  50. return 1;
  51. }
  52. else
  53. {
  54. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Component.New");
  55. }
  56. }
  57. catch (Exception e)
  58. {
  59. return LuaDLL.toluaL_exception(L, e);
  60. }
  61. }
  62. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  63. static int GetComponent(IntPtr L)
  64. {
  65. try
  66. {
  67. int count = LuaDLL.lua_gettop(L);
  68. if (count == 2 && TypeChecker.CheckTypes<System.Type>(L, 2))
  69. {
  70. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  71. System.Type arg0 = (System.Type)ToLua.ToObject(L, 2);
  72. UnityEngine.Component o = obj.GetComponent(arg0);
  73. ToLua.Push(L, o);
  74. return 1;
  75. }
  76. else if (count == 2 && TypeChecker.CheckTypes<string>(L, 2))
  77. {
  78. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  79. string arg0 = ToLua.ToString(L, 2);
  80. UnityEngine.Component o = obj.GetComponent(arg0);
  81. ToLua.Push(L, o);
  82. return 1;
  83. }
  84. else
  85. {
  86. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.GetComponent");
  87. }
  88. }
  89. catch (Exception e)
  90. {
  91. return LuaDLL.toluaL_exception(L, e);
  92. }
  93. }
  94. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  95. static int GetComponentInChildren(IntPtr L)
  96. {
  97. try
  98. {
  99. int count = LuaDLL.lua_gettop(L);
  100. if (count == 2)
  101. {
  102. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  103. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  104. UnityEngine.Component o = obj.GetComponentInChildren(arg0);
  105. ToLua.Push(L, o);
  106. return 1;
  107. }
  108. else if (count == 3)
  109. {
  110. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  111. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  112. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  113. UnityEngine.Component o = obj.GetComponentInChildren(arg0, arg1);
  114. ToLua.Push(L, o);
  115. return 1;
  116. }
  117. else
  118. {
  119. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.GetComponentInChildren");
  120. }
  121. }
  122. catch (Exception e)
  123. {
  124. return LuaDLL.toluaL_exception(L, e);
  125. }
  126. }
  127. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  128. static int GetComponentsInChildren(IntPtr L)
  129. {
  130. try
  131. {
  132. int count = LuaDLL.lua_gettop(L);
  133. if (count == 2)
  134. {
  135. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  136. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  137. UnityEngine.Component[] o = obj.GetComponentsInChildren(arg0);
  138. ToLua.Push(L, o);
  139. return 1;
  140. }
  141. else if (count == 3)
  142. {
  143. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  144. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  145. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  146. UnityEngine.Component[] o = obj.GetComponentsInChildren(arg0, arg1);
  147. ToLua.Push(L, o);
  148. return 1;
  149. }
  150. else
  151. {
  152. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.GetComponentsInChildren");
  153. }
  154. }
  155. catch (Exception e)
  156. {
  157. return LuaDLL.toluaL_exception(L, e);
  158. }
  159. }
  160. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  161. static int GetComponentInParent(IntPtr L)
  162. {
  163. try
  164. {
  165. ToLua.CheckArgsCount(L, 2);
  166. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  167. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  168. UnityEngine.Component o = obj.GetComponentInParent(arg0);
  169. ToLua.Push(L, o);
  170. return 1;
  171. }
  172. catch (Exception e)
  173. {
  174. return LuaDLL.toluaL_exception(L, e);
  175. }
  176. }
  177. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  178. static int GetComponentsInParent(IntPtr L)
  179. {
  180. try
  181. {
  182. int count = LuaDLL.lua_gettop(L);
  183. if (count == 2)
  184. {
  185. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  186. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  187. UnityEngine.Component[] o = obj.GetComponentsInParent(arg0);
  188. ToLua.Push(L, o);
  189. return 1;
  190. }
  191. else if (count == 3)
  192. {
  193. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  194. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  195. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  196. UnityEngine.Component[] o = obj.GetComponentsInParent(arg0, arg1);
  197. ToLua.Push(L, o);
  198. return 1;
  199. }
  200. else
  201. {
  202. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.GetComponentsInParent");
  203. }
  204. }
  205. catch (Exception e)
  206. {
  207. return LuaDLL.toluaL_exception(L, e);
  208. }
  209. }
  210. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  211. static int GetComponents(IntPtr L)
  212. {
  213. try
  214. {
  215. int count = LuaDLL.lua_gettop(L);
  216. if (count == 2)
  217. {
  218. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  219. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  220. UnityEngine.Component[] o = obj.GetComponents(arg0);
  221. ToLua.Push(L, o);
  222. return 1;
  223. }
  224. else if (count == 3)
  225. {
  226. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  227. System.Type arg0 = ToLua.CheckMonoType(L, 2);
  228. System.Collections.Generic.List<UnityEngine.Component> arg1 = (System.Collections.Generic.List<UnityEngine.Component>)ToLua.CheckObject(L, 3, typeof(System.Collections.Generic.List<UnityEngine.Component>));
  229. obj.GetComponents(arg0, arg1);
  230. return 0;
  231. }
  232. else
  233. {
  234. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.GetComponents");
  235. }
  236. }
  237. catch (Exception e)
  238. {
  239. return LuaDLL.toluaL_exception(L, e);
  240. }
  241. }
  242. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  243. static int CompareTag(IntPtr L)
  244. {
  245. try
  246. {
  247. ToLua.CheckArgsCount(L, 2);
  248. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  249. string arg0 = ToLua.CheckString(L, 2);
  250. bool o = obj.CompareTag(arg0);
  251. LuaDLL.lua_pushboolean(L, o);
  252. return 1;
  253. }
  254. catch (Exception e)
  255. {
  256. return LuaDLL.toluaL_exception(L, e);
  257. }
  258. }
  259. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  260. static int SendMessageUpwards(IntPtr L)
  261. {
  262. try
  263. {
  264. int count = LuaDLL.lua_gettop(L);
  265. if (count == 2)
  266. {
  267. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  268. string arg0 = ToLua.CheckString(L, 2);
  269. obj.SendMessageUpwards(arg0);
  270. return 0;
  271. }
  272. else if (count == 3 && TypeChecker.CheckTypes<UnityEngine.SendMessageOptions>(L, 3))
  273. {
  274. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  275. string arg0 = ToLua.CheckString(L, 2);
  276. UnityEngine.SendMessageOptions arg1 = (UnityEngine.SendMessageOptions)ToLua.ToObject(L, 3);
  277. obj.SendMessageUpwards(arg0, arg1);
  278. return 0;
  279. }
  280. else if (count == 3 && TypeChecker.CheckTypes<object>(L, 3))
  281. {
  282. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  283. string arg0 = ToLua.CheckString(L, 2);
  284. object arg1 = ToLua.ToVarObject(L, 3);
  285. obj.SendMessageUpwards(arg0, arg1);
  286. return 0;
  287. }
  288. else if (count == 4)
  289. {
  290. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  291. string arg0 = ToLua.CheckString(L, 2);
  292. object arg1 = ToLua.ToVarObject(L, 3);
  293. UnityEngine.SendMessageOptions arg2 = (UnityEngine.SendMessageOptions)ToLua.CheckObject(L, 4, typeof(UnityEngine.SendMessageOptions));
  294. obj.SendMessageUpwards(arg0, arg1, arg2);
  295. return 0;
  296. }
  297. else
  298. {
  299. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.SendMessageUpwards");
  300. }
  301. }
  302. catch (Exception e)
  303. {
  304. return LuaDLL.toluaL_exception(L, e);
  305. }
  306. }
  307. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  308. static int SendMessage(IntPtr L)
  309. {
  310. try
  311. {
  312. int count = LuaDLL.lua_gettop(L);
  313. if (count == 2)
  314. {
  315. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  316. string arg0 = ToLua.CheckString(L, 2);
  317. obj.SendMessage(arg0);
  318. return 0;
  319. }
  320. else if (count == 3 && TypeChecker.CheckTypes<UnityEngine.SendMessageOptions>(L, 3))
  321. {
  322. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  323. string arg0 = ToLua.CheckString(L, 2);
  324. UnityEngine.SendMessageOptions arg1 = (UnityEngine.SendMessageOptions)ToLua.ToObject(L, 3);
  325. obj.SendMessage(arg0, arg1);
  326. return 0;
  327. }
  328. else if (count == 3 && TypeChecker.CheckTypes<object>(L, 3))
  329. {
  330. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  331. string arg0 = ToLua.CheckString(L, 2);
  332. object arg1 = ToLua.ToVarObject(L, 3);
  333. obj.SendMessage(arg0, arg1);
  334. return 0;
  335. }
  336. else if (count == 4)
  337. {
  338. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  339. string arg0 = ToLua.CheckString(L, 2);
  340. object arg1 = ToLua.ToVarObject(L, 3);
  341. UnityEngine.SendMessageOptions arg2 = (UnityEngine.SendMessageOptions)ToLua.CheckObject(L, 4, typeof(UnityEngine.SendMessageOptions));
  342. obj.SendMessage(arg0, arg1, arg2);
  343. return 0;
  344. }
  345. else
  346. {
  347. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.SendMessage");
  348. }
  349. }
  350. catch (Exception e)
  351. {
  352. return LuaDLL.toluaL_exception(L, e);
  353. }
  354. }
  355. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  356. static int BroadcastMessage(IntPtr L)
  357. {
  358. try
  359. {
  360. int count = LuaDLL.lua_gettop(L);
  361. if (count == 2)
  362. {
  363. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  364. string arg0 = ToLua.CheckString(L, 2);
  365. obj.BroadcastMessage(arg0);
  366. return 0;
  367. }
  368. else if (count == 3 && TypeChecker.CheckTypes<UnityEngine.SendMessageOptions>(L, 3))
  369. {
  370. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  371. string arg0 = ToLua.CheckString(L, 2);
  372. UnityEngine.SendMessageOptions arg1 = (UnityEngine.SendMessageOptions)ToLua.ToObject(L, 3);
  373. obj.BroadcastMessage(arg0, arg1);
  374. return 0;
  375. }
  376. else if (count == 3 && TypeChecker.CheckTypes<object>(L, 3))
  377. {
  378. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  379. string arg0 = ToLua.CheckString(L, 2);
  380. object arg1 = ToLua.ToVarObject(L, 3);
  381. obj.BroadcastMessage(arg0, arg1);
  382. return 0;
  383. }
  384. else if (count == 4)
  385. {
  386. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  387. string arg0 = ToLua.CheckString(L, 2);
  388. object arg1 = ToLua.ToVarObject(L, 3);
  389. UnityEngine.SendMessageOptions arg2 = (UnityEngine.SendMessageOptions)ToLua.CheckObject(L, 4, typeof(UnityEngine.SendMessageOptions));
  390. obj.BroadcastMessage(arg0, arg1, arg2);
  391. return 0;
  392. }
  393. else
  394. {
  395. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.BroadcastMessage");
  396. }
  397. }
  398. catch (Exception e)
  399. {
  400. return LuaDLL.toluaL_exception(L, e);
  401. }
  402. }
  403. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  404. static int DOTogglePause(IntPtr L)
  405. {
  406. try
  407. {
  408. ToLua.CheckArgsCount(L, 1);
  409. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  410. int o = obj.DOTogglePause();
  411. LuaDLL.lua_pushinteger(L, o);
  412. return 1;
  413. }
  414. catch (Exception e)
  415. {
  416. return LuaDLL.toluaL_exception(L, e);
  417. }
  418. }
  419. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  420. static int DOSmoothRewind(IntPtr L)
  421. {
  422. try
  423. {
  424. ToLua.CheckArgsCount(L, 1);
  425. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  426. int o = obj.DOSmoothRewind();
  427. LuaDLL.lua_pushinteger(L, o);
  428. return 1;
  429. }
  430. catch (Exception e)
  431. {
  432. return LuaDLL.toluaL_exception(L, e);
  433. }
  434. }
  435. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  436. static int DORewind(IntPtr L)
  437. {
  438. try
  439. {
  440. int count = LuaDLL.lua_gettop(L);
  441. if (count == 1)
  442. {
  443. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  444. int o = obj.DORewind();
  445. LuaDLL.lua_pushinteger(L, o);
  446. return 1;
  447. }
  448. else if (count == 2)
  449. {
  450. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  451. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  452. int o = obj.DORewind(arg0);
  453. LuaDLL.lua_pushinteger(L, o);
  454. return 1;
  455. }
  456. else
  457. {
  458. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.DORewind");
  459. }
  460. }
  461. catch (Exception e)
  462. {
  463. return LuaDLL.toluaL_exception(L, e);
  464. }
  465. }
  466. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  467. static int DORestart(IntPtr L)
  468. {
  469. try
  470. {
  471. int count = LuaDLL.lua_gettop(L);
  472. if (count == 1)
  473. {
  474. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  475. int o = obj.DORestart();
  476. LuaDLL.lua_pushinteger(L, o);
  477. return 1;
  478. }
  479. else if (count == 2)
  480. {
  481. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  482. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  483. int o = obj.DORestart(arg0);
  484. LuaDLL.lua_pushinteger(L, o);
  485. return 1;
  486. }
  487. else
  488. {
  489. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.DORestart");
  490. }
  491. }
  492. catch (Exception e)
  493. {
  494. return LuaDLL.toluaL_exception(L, e);
  495. }
  496. }
  497. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  498. static int DOPlayForward(IntPtr L)
  499. {
  500. try
  501. {
  502. ToLua.CheckArgsCount(L, 1);
  503. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  504. int o = obj.DOPlayForward();
  505. LuaDLL.lua_pushinteger(L, o);
  506. return 1;
  507. }
  508. catch (Exception e)
  509. {
  510. return LuaDLL.toluaL_exception(L, e);
  511. }
  512. }
  513. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  514. static int DOPlayBackwards(IntPtr L)
  515. {
  516. try
  517. {
  518. ToLua.CheckArgsCount(L, 1);
  519. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  520. int o = obj.DOPlayBackwards();
  521. LuaDLL.lua_pushinteger(L, o);
  522. return 1;
  523. }
  524. catch (Exception e)
  525. {
  526. return LuaDLL.toluaL_exception(L, e);
  527. }
  528. }
  529. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  530. static int DOPlay(IntPtr L)
  531. {
  532. try
  533. {
  534. ToLua.CheckArgsCount(L, 1);
  535. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  536. int o = obj.DOPlay();
  537. LuaDLL.lua_pushinteger(L, o);
  538. return 1;
  539. }
  540. catch (Exception e)
  541. {
  542. return LuaDLL.toluaL_exception(L, e);
  543. }
  544. }
  545. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  546. static int DOPause(IntPtr L)
  547. {
  548. try
  549. {
  550. ToLua.CheckArgsCount(L, 1);
  551. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  552. int o = obj.DOPause();
  553. LuaDLL.lua_pushinteger(L, o);
  554. return 1;
  555. }
  556. catch (Exception e)
  557. {
  558. return LuaDLL.toluaL_exception(L, e);
  559. }
  560. }
  561. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  562. static int DOGoto(IntPtr L)
  563. {
  564. try
  565. {
  566. int count = LuaDLL.lua_gettop(L);
  567. if (count == 2)
  568. {
  569. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  570. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  571. int o = obj.DOGoto(arg0);
  572. LuaDLL.lua_pushinteger(L, o);
  573. return 1;
  574. }
  575. else if (count == 3)
  576. {
  577. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  578. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  579. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  580. int o = obj.DOGoto(arg0, arg1);
  581. LuaDLL.lua_pushinteger(L, o);
  582. return 1;
  583. }
  584. else
  585. {
  586. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.DOGoto");
  587. }
  588. }
  589. catch (Exception e)
  590. {
  591. return LuaDLL.toluaL_exception(L, e);
  592. }
  593. }
  594. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  595. static int DOFlip(IntPtr L)
  596. {
  597. try
  598. {
  599. ToLua.CheckArgsCount(L, 1);
  600. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  601. int o = obj.DOFlip();
  602. LuaDLL.lua_pushinteger(L, o);
  603. return 1;
  604. }
  605. catch (Exception e)
  606. {
  607. return LuaDLL.toluaL_exception(L, e);
  608. }
  609. }
  610. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  611. static int DOKill(IntPtr L)
  612. {
  613. try
  614. {
  615. int count = LuaDLL.lua_gettop(L);
  616. if (count == 1)
  617. {
  618. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  619. int o = obj.DOKill();
  620. LuaDLL.lua_pushinteger(L, o);
  621. return 1;
  622. }
  623. else if (count == 2)
  624. {
  625. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  626. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  627. int o = obj.DOKill(arg0);
  628. LuaDLL.lua_pushinteger(L, o);
  629. return 1;
  630. }
  631. else
  632. {
  633. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.DOKill");
  634. }
  635. }
  636. catch (Exception e)
  637. {
  638. return LuaDLL.toluaL_exception(L, e);
  639. }
  640. }
  641. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  642. static int DOComplete(IntPtr L)
  643. {
  644. try
  645. {
  646. int count = LuaDLL.lua_gettop(L);
  647. if (count == 1)
  648. {
  649. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  650. int o = obj.DOComplete();
  651. LuaDLL.lua_pushinteger(L, o);
  652. return 1;
  653. }
  654. else if (count == 2)
  655. {
  656. UnityEngine.Component obj = (UnityEngine.Component)ToLua.CheckObject<UnityEngine.Component>(L, 1);
  657. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  658. int o = obj.DOComplete(arg0);
  659. LuaDLL.lua_pushinteger(L, o);
  660. return 1;
  661. }
  662. else
  663. {
  664. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Component.DOComplete");
  665. }
  666. }
  667. catch (Exception e)
  668. {
  669. return LuaDLL.toluaL_exception(L, e);
  670. }
  671. }
  672. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  673. static int op_Equality(IntPtr L)
  674. {
  675. try
  676. {
  677. ToLua.CheckArgsCount(L, 2);
  678. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  679. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  680. bool o = arg0 == arg1;
  681. LuaDLL.lua_pushboolean(L, o);
  682. return 1;
  683. }
  684. catch (Exception e)
  685. {
  686. return LuaDLL.toluaL_exception(L, e);
  687. }
  688. }
  689. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  690. static int get_transform(IntPtr L)
  691. {
  692. object o = null;
  693. try
  694. {
  695. o = ToLua.ToObject(L, 1);
  696. UnityEngine.Component obj = (UnityEngine.Component)o;
  697. UnityEngine.Transform ret = obj.transform;
  698. ToLua.Push(L, ret);
  699. return 1;
  700. }
  701. catch(Exception e)
  702. {
  703. return LuaDLL.toluaL_exception(L, e, o, "attempt to index transform on a nil value");
  704. }
  705. }
  706. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  707. static int get_gameObject(IntPtr L)
  708. {
  709. object o = null;
  710. try
  711. {
  712. o = ToLua.ToObject(L, 1);
  713. UnityEngine.Component obj = (UnityEngine.Component)o;
  714. UnityEngine.GameObject ret = obj.gameObject;
  715. ToLua.PushSealed(L, ret);
  716. return 1;
  717. }
  718. catch(Exception e)
  719. {
  720. return LuaDLL.toluaL_exception(L, e, o, "attempt to index gameObject on a nil value");
  721. }
  722. }
  723. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  724. static int get_tag(IntPtr L)
  725. {
  726. object o = null;
  727. try
  728. {
  729. o = ToLua.ToObject(L, 1);
  730. UnityEngine.Component obj = (UnityEngine.Component)o;
  731. string ret = obj.tag;
  732. LuaDLL.lua_pushstring(L, ret);
  733. return 1;
  734. }
  735. catch(Exception e)
  736. {
  737. return LuaDLL.toluaL_exception(L, e, o, "attempt to index tag on a nil value");
  738. }
  739. }
  740. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  741. static int set_tag(IntPtr L)
  742. {
  743. object o = null;
  744. try
  745. {
  746. o = ToLua.ToObject(L, 1);
  747. UnityEngine.Component obj = (UnityEngine.Component)o;
  748. string arg0 = ToLua.CheckString(L, 2);
  749. obj.tag = arg0;
  750. return 0;
  751. }
  752. catch(Exception e)
  753. {
  754. return LuaDLL.toluaL_exception(L, e, o, "attempt to index tag on a nil value");
  755. }
  756. }
  757. }