UnityEngine_AnimationStateWrap.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_AnimationStateWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.AnimationState), typeof(UnityEngine.TrackedReference));
  9. L.RegFunction("AddMixingTransform", AddMixingTransform);
  10. L.RegFunction("RemoveMixingTransform", RemoveMixingTransform);
  11. L.RegFunction("New", _CreateUnityEngine_AnimationState);
  12. L.RegFunction("__eq", op_Equality);
  13. L.RegFunction("__tostring", ToLua.op_ToString);
  14. L.RegVar("enabled", get_enabled, set_enabled);
  15. L.RegVar("weight", get_weight, set_weight);
  16. L.RegVar("wrapMode", get_wrapMode, set_wrapMode);
  17. L.RegVar("time", get_time, set_time);
  18. L.RegVar("normalizedTime", get_normalizedTime, set_normalizedTime);
  19. L.RegVar("speed", get_speed, set_speed);
  20. L.RegVar("normalizedSpeed", get_normalizedSpeed, set_normalizedSpeed);
  21. L.RegVar("length", get_length, null);
  22. L.RegVar("layer", get_layer, set_layer);
  23. L.RegVar("clip", get_clip, null);
  24. L.RegVar("name", get_name, set_name);
  25. L.RegVar("blendMode", get_blendMode, set_blendMode);
  26. L.EndClass();
  27. }
  28. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  29. static int _CreateUnityEngine_AnimationState(IntPtr L)
  30. {
  31. try
  32. {
  33. int count = LuaDLL.lua_gettop(L);
  34. if (count == 0)
  35. {
  36. UnityEngine.AnimationState obj = new UnityEngine.AnimationState();
  37. ToLua.PushSealed(L, obj);
  38. return 1;
  39. }
  40. else
  41. {
  42. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.AnimationState.New");
  43. }
  44. }
  45. catch (Exception e)
  46. {
  47. return LuaDLL.toluaL_exception(L, e);
  48. }
  49. }
  50. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  51. static int AddMixingTransform(IntPtr L)
  52. {
  53. try
  54. {
  55. int count = LuaDLL.lua_gettop(L);
  56. if (count == 2)
  57. {
  58. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)ToLua.CheckObject(L, 1, typeof(UnityEngine.AnimationState));
  59. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject<UnityEngine.Transform>(L, 2);
  60. obj.AddMixingTransform(arg0);
  61. return 0;
  62. }
  63. else if (count == 3)
  64. {
  65. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)ToLua.CheckObject(L, 1, typeof(UnityEngine.AnimationState));
  66. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject<UnityEngine.Transform>(L, 2);
  67. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  68. obj.AddMixingTransform(arg0, arg1);
  69. return 0;
  70. }
  71. else
  72. {
  73. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AnimationState.AddMixingTransform");
  74. }
  75. }
  76. catch (Exception e)
  77. {
  78. return LuaDLL.toluaL_exception(L, e);
  79. }
  80. }
  81. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  82. static int RemoveMixingTransform(IntPtr L)
  83. {
  84. try
  85. {
  86. ToLua.CheckArgsCount(L, 2);
  87. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)ToLua.CheckObject(L, 1, typeof(UnityEngine.AnimationState));
  88. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject<UnityEngine.Transform>(L, 2);
  89. obj.RemoveMixingTransform(arg0);
  90. return 0;
  91. }
  92. catch (Exception e)
  93. {
  94. return LuaDLL.toluaL_exception(L, e);
  95. }
  96. }
  97. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  98. static int op_Equality(IntPtr L)
  99. {
  100. try
  101. {
  102. ToLua.CheckArgsCount(L, 2);
  103. UnityEngine.TrackedReference arg0 = (UnityEngine.TrackedReference)ToLua.ToObject(L, 1);
  104. UnityEngine.TrackedReference arg1 = (UnityEngine.TrackedReference)ToLua.ToObject(L, 2);
  105. bool o = arg0 == arg1;
  106. LuaDLL.lua_pushboolean(L, o);
  107. return 1;
  108. }
  109. catch (Exception e)
  110. {
  111. return LuaDLL.toluaL_exception(L, e);
  112. }
  113. }
  114. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  115. static int get_enabled(IntPtr L)
  116. {
  117. object o = null;
  118. try
  119. {
  120. o = ToLua.ToObject(L, 1);
  121. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  122. bool ret = obj.enabled;
  123. LuaDLL.lua_pushboolean(L, ret);
  124. return 1;
  125. }
  126. catch(Exception e)
  127. {
  128. return LuaDLL.toluaL_exception(L, e, o, "attempt to index enabled on a nil value");
  129. }
  130. }
  131. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  132. static int get_weight(IntPtr L)
  133. {
  134. object o = null;
  135. try
  136. {
  137. o = ToLua.ToObject(L, 1);
  138. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  139. float ret = obj.weight;
  140. LuaDLL.lua_pushnumber(L, ret);
  141. return 1;
  142. }
  143. catch(Exception e)
  144. {
  145. return LuaDLL.toluaL_exception(L, e, o, "attempt to index weight on a nil value");
  146. }
  147. }
  148. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  149. static int get_wrapMode(IntPtr L)
  150. {
  151. object o = null;
  152. try
  153. {
  154. o = ToLua.ToObject(L, 1);
  155. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  156. UnityEngine.WrapMode ret = obj.wrapMode;
  157. ToLua.Push(L, ret);
  158. return 1;
  159. }
  160. catch(Exception e)
  161. {
  162. return LuaDLL.toluaL_exception(L, e, o, "attempt to index wrapMode on a nil value");
  163. }
  164. }
  165. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  166. static int get_time(IntPtr L)
  167. {
  168. object o = null;
  169. try
  170. {
  171. o = ToLua.ToObject(L, 1);
  172. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  173. float ret = obj.time;
  174. LuaDLL.lua_pushnumber(L, ret);
  175. return 1;
  176. }
  177. catch(Exception e)
  178. {
  179. return LuaDLL.toluaL_exception(L, e, o, "attempt to index time on a nil value");
  180. }
  181. }
  182. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  183. static int get_normalizedTime(IntPtr L)
  184. {
  185. object o = null;
  186. try
  187. {
  188. o = ToLua.ToObject(L, 1);
  189. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  190. float ret = obj.normalizedTime;
  191. LuaDLL.lua_pushnumber(L, ret);
  192. return 1;
  193. }
  194. catch(Exception e)
  195. {
  196. return LuaDLL.toluaL_exception(L, e, o, "attempt to index normalizedTime on a nil value");
  197. }
  198. }
  199. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  200. static int get_speed(IntPtr L)
  201. {
  202. object o = null;
  203. try
  204. {
  205. o = ToLua.ToObject(L, 1);
  206. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  207. float ret = obj.speed;
  208. LuaDLL.lua_pushnumber(L, ret);
  209. return 1;
  210. }
  211. catch(Exception e)
  212. {
  213. return LuaDLL.toluaL_exception(L, e, o, "attempt to index speed on a nil value");
  214. }
  215. }
  216. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  217. static int get_normalizedSpeed(IntPtr L)
  218. {
  219. object o = null;
  220. try
  221. {
  222. o = ToLua.ToObject(L, 1);
  223. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  224. float ret = obj.normalizedSpeed;
  225. LuaDLL.lua_pushnumber(L, ret);
  226. return 1;
  227. }
  228. catch(Exception e)
  229. {
  230. return LuaDLL.toluaL_exception(L, e, o, "attempt to index normalizedSpeed on a nil value");
  231. }
  232. }
  233. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  234. static int get_length(IntPtr L)
  235. {
  236. object o = null;
  237. try
  238. {
  239. o = ToLua.ToObject(L, 1);
  240. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  241. float ret = obj.length;
  242. LuaDLL.lua_pushnumber(L, ret);
  243. return 1;
  244. }
  245. catch(Exception e)
  246. {
  247. return LuaDLL.toluaL_exception(L, e, o, "attempt to index length on a nil value");
  248. }
  249. }
  250. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  251. static int get_layer(IntPtr L)
  252. {
  253. object o = null;
  254. try
  255. {
  256. o = ToLua.ToObject(L, 1);
  257. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  258. int ret = obj.layer;
  259. LuaDLL.lua_pushinteger(L, ret);
  260. return 1;
  261. }
  262. catch(Exception e)
  263. {
  264. return LuaDLL.toluaL_exception(L, e, o, "attempt to index layer on a nil value");
  265. }
  266. }
  267. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  268. static int get_clip(IntPtr L)
  269. {
  270. object o = null;
  271. try
  272. {
  273. o = ToLua.ToObject(L, 1);
  274. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  275. UnityEngine.AnimationClip ret = obj.clip;
  276. ToLua.PushSealed(L, ret);
  277. return 1;
  278. }
  279. catch(Exception e)
  280. {
  281. return LuaDLL.toluaL_exception(L, e, o, "attempt to index clip on a nil value");
  282. }
  283. }
  284. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  285. static int get_name(IntPtr L)
  286. {
  287. object o = null;
  288. try
  289. {
  290. o = ToLua.ToObject(L, 1);
  291. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  292. string ret = obj.name;
  293. LuaDLL.lua_pushstring(L, ret);
  294. return 1;
  295. }
  296. catch(Exception e)
  297. {
  298. return LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value");
  299. }
  300. }
  301. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  302. static int get_blendMode(IntPtr L)
  303. {
  304. object o = null;
  305. try
  306. {
  307. o = ToLua.ToObject(L, 1);
  308. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  309. UnityEngine.AnimationBlendMode ret = obj.blendMode;
  310. ToLua.Push(L, ret);
  311. return 1;
  312. }
  313. catch(Exception e)
  314. {
  315. return LuaDLL.toluaL_exception(L, e, o, "attempt to index blendMode on a nil value");
  316. }
  317. }
  318. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  319. static int set_enabled(IntPtr L)
  320. {
  321. object o = null;
  322. try
  323. {
  324. o = ToLua.ToObject(L, 1);
  325. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  326. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  327. obj.enabled = arg0;
  328. return 0;
  329. }
  330. catch(Exception e)
  331. {
  332. return LuaDLL.toluaL_exception(L, e, o, "attempt to index enabled on a nil value");
  333. }
  334. }
  335. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  336. static int set_weight(IntPtr L)
  337. {
  338. object o = null;
  339. try
  340. {
  341. o = ToLua.ToObject(L, 1);
  342. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  343. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  344. obj.weight = arg0;
  345. return 0;
  346. }
  347. catch(Exception e)
  348. {
  349. return LuaDLL.toluaL_exception(L, e, o, "attempt to index weight on a nil value");
  350. }
  351. }
  352. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  353. static int set_wrapMode(IntPtr L)
  354. {
  355. object o = null;
  356. try
  357. {
  358. o = ToLua.ToObject(L, 1);
  359. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  360. UnityEngine.WrapMode arg0 = (UnityEngine.WrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.WrapMode));
  361. obj.wrapMode = arg0;
  362. return 0;
  363. }
  364. catch(Exception e)
  365. {
  366. return LuaDLL.toluaL_exception(L, e, o, "attempt to index wrapMode on a nil value");
  367. }
  368. }
  369. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  370. static int set_time(IntPtr L)
  371. {
  372. object o = null;
  373. try
  374. {
  375. o = ToLua.ToObject(L, 1);
  376. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  377. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  378. obj.time = arg0;
  379. return 0;
  380. }
  381. catch(Exception e)
  382. {
  383. return LuaDLL.toluaL_exception(L, e, o, "attempt to index time on a nil value");
  384. }
  385. }
  386. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  387. static int set_normalizedTime(IntPtr L)
  388. {
  389. object o = null;
  390. try
  391. {
  392. o = ToLua.ToObject(L, 1);
  393. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  394. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  395. obj.normalizedTime = arg0;
  396. return 0;
  397. }
  398. catch(Exception e)
  399. {
  400. return LuaDLL.toluaL_exception(L, e, o, "attempt to index normalizedTime on a nil value");
  401. }
  402. }
  403. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  404. static int set_speed(IntPtr L)
  405. {
  406. object o = null;
  407. try
  408. {
  409. o = ToLua.ToObject(L, 1);
  410. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  411. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  412. obj.speed = arg0;
  413. return 0;
  414. }
  415. catch(Exception e)
  416. {
  417. return LuaDLL.toluaL_exception(L, e, o, "attempt to index speed on a nil value");
  418. }
  419. }
  420. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  421. static int set_normalizedSpeed(IntPtr L)
  422. {
  423. object o = null;
  424. try
  425. {
  426. o = ToLua.ToObject(L, 1);
  427. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  428. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  429. obj.normalizedSpeed = arg0;
  430. return 0;
  431. }
  432. catch(Exception e)
  433. {
  434. return LuaDLL.toluaL_exception(L, e, o, "attempt to index normalizedSpeed on a nil value");
  435. }
  436. }
  437. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  438. static int set_layer(IntPtr L)
  439. {
  440. object o = null;
  441. try
  442. {
  443. o = ToLua.ToObject(L, 1);
  444. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  445. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  446. obj.layer = arg0;
  447. return 0;
  448. }
  449. catch(Exception e)
  450. {
  451. return LuaDLL.toluaL_exception(L, e, o, "attempt to index layer on a nil value");
  452. }
  453. }
  454. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  455. static int set_name(IntPtr L)
  456. {
  457. object o = null;
  458. try
  459. {
  460. o = ToLua.ToObject(L, 1);
  461. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  462. string arg0 = ToLua.CheckString(L, 2);
  463. obj.name = arg0;
  464. return 0;
  465. }
  466. catch(Exception e)
  467. {
  468. return LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value");
  469. }
  470. }
  471. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  472. static int set_blendMode(IntPtr L)
  473. {
  474. object o = null;
  475. try
  476. {
  477. o = ToLua.ToObject(L, 1);
  478. UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o;
  479. UnityEngine.AnimationBlendMode arg0 = (UnityEngine.AnimationBlendMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnimationBlendMode));
  480. obj.blendMode = arg0;
  481. return 0;
  482. }
  483. catch(Exception e)
  484. {
  485. return LuaDLL.toluaL_exception(L, e, o, "attempt to index blendMode on a nil value");
  486. }
  487. }
  488. }