Spine_SkeletonWrap.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class Spine_SkeletonWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(Spine.Skeleton), typeof(System.Object));
  9. L.RegFunction("UpdateCache", UpdateCache);
  10. L.RegFunction("UpdateWorldTransform", UpdateWorldTransform);
  11. L.RegFunction("SetToSetupPose", SetToSetupPose);
  12. L.RegFunction("SetBonesToSetupPose", SetBonesToSetupPose);
  13. L.RegFunction("SetSlotsToSetupPose", SetSlotsToSetupPose);
  14. L.RegFunction("FindBone", FindBone);
  15. L.RegFunction("FindBoneIndex", FindBoneIndex);
  16. L.RegFunction("FindSlot", FindSlot);
  17. L.RegFunction("FindSlotIndex", FindSlotIndex);
  18. L.RegFunction("SetSkin", SetSkin);
  19. L.RegFunction("GetAttachment", GetAttachment);
  20. L.RegFunction("SetAttachment", SetAttachment);
  21. L.RegFunction("FindIkConstraint", FindIkConstraint);
  22. L.RegFunction("FindTransformConstraint", FindTransformConstraint);
  23. L.RegFunction("FindPathConstraint", FindPathConstraint);
  24. L.RegFunction("Update", Update);
  25. L.RegFunction("GetBounds", GetBounds);
  26. L.RegFunction("New", _CreateSpine_Skeleton);
  27. L.RegFunction("__tostring", ToLua.op_ToString);
  28. L.RegVar("Data", get_Data, null);
  29. L.RegVar("Bones", get_Bones, null);
  30. L.RegVar("UpdateCacheList", get_UpdateCacheList, null);
  31. L.RegVar("Slots", get_Slots, null);
  32. L.RegVar("DrawOrder", get_DrawOrder, null);
  33. L.RegVar("IkConstraints", get_IkConstraints, null);
  34. L.RegVar("PathConstraints", get_PathConstraints, null);
  35. L.RegVar("TransformConstraints", get_TransformConstraints, null);
  36. L.RegVar("Skin", get_Skin, set_Skin);
  37. L.RegVar("R", get_R, set_R);
  38. L.RegVar("G", get_G, set_G);
  39. L.RegVar("B", get_B, set_B);
  40. L.RegVar("A", get_A, set_A);
  41. L.RegVar("Time", get_Time, set_Time);
  42. L.RegVar("X", get_X, set_X);
  43. L.RegVar("Y", get_Y, set_Y);
  44. L.RegVar("ScaleX", get_ScaleX, set_ScaleX);
  45. L.RegVar("ScaleY", get_ScaleY, set_ScaleY);
  46. L.RegVar("RootBone", get_RootBone, null);
  47. L.EndClass();
  48. }
  49. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  50. static int _CreateSpine_Skeleton(IntPtr L)
  51. {
  52. try
  53. {
  54. int count = LuaDLL.lua_gettop(L);
  55. if (count == 1)
  56. {
  57. Spine.SkeletonData arg0 = (Spine.SkeletonData)ToLua.CheckObject<Spine.SkeletonData>(L, 1);
  58. Spine.Skeleton obj = new Spine.Skeleton(arg0);
  59. ToLua.PushObject(L, obj);
  60. return 1;
  61. }
  62. else
  63. {
  64. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Spine.Skeleton.New");
  65. }
  66. }
  67. catch (Exception e)
  68. {
  69. return LuaDLL.toluaL_exception(L, e);
  70. }
  71. }
  72. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  73. static int UpdateCache(IntPtr L)
  74. {
  75. try
  76. {
  77. ToLua.CheckArgsCount(L, 1);
  78. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  79. obj.UpdateCache();
  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 UpdateWorldTransform(IntPtr L)
  89. {
  90. try
  91. {
  92. int count = LuaDLL.lua_gettop(L);
  93. if (count == 1)
  94. {
  95. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  96. obj.UpdateWorldTransform();
  97. return 0;
  98. }
  99. else if (count == 2)
  100. {
  101. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  102. Spine.Bone arg0 = (Spine.Bone)ToLua.CheckObject<Spine.Bone>(L, 2);
  103. obj.UpdateWorldTransform(arg0);
  104. return 0;
  105. }
  106. else
  107. {
  108. return LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.Skeleton.UpdateWorldTransform");
  109. }
  110. }
  111. catch (Exception e)
  112. {
  113. return LuaDLL.toluaL_exception(L, e);
  114. }
  115. }
  116. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  117. static int SetToSetupPose(IntPtr L)
  118. {
  119. try
  120. {
  121. ToLua.CheckArgsCount(L, 1);
  122. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  123. obj.SetToSetupPose();
  124. return 0;
  125. }
  126. catch (Exception e)
  127. {
  128. return LuaDLL.toluaL_exception(L, e);
  129. }
  130. }
  131. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  132. static int SetBonesToSetupPose(IntPtr L)
  133. {
  134. try
  135. {
  136. ToLua.CheckArgsCount(L, 1);
  137. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  138. obj.SetBonesToSetupPose();
  139. return 0;
  140. }
  141. catch (Exception e)
  142. {
  143. return LuaDLL.toluaL_exception(L, e);
  144. }
  145. }
  146. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  147. static int SetSlotsToSetupPose(IntPtr L)
  148. {
  149. try
  150. {
  151. ToLua.CheckArgsCount(L, 1);
  152. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  153. obj.SetSlotsToSetupPose();
  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 FindBone(IntPtr L)
  163. {
  164. try
  165. {
  166. ToLua.CheckArgsCount(L, 2);
  167. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  168. string arg0 = ToLua.CheckString(L, 2);
  169. Spine.Bone o = obj.FindBone(arg0);
  170. ToLua.PushObject(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 FindBoneIndex(IntPtr L)
  180. {
  181. try
  182. {
  183. ToLua.CheckArgsCount(L, 2);
  184. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  185. string arg0 = ToLua.CheckString(L, 2);
  186. int o = obj.FindBoneIndex(arg0);
  187. LuaDLL.lua_pushinteger(L, o);
  188. return 1;
  189. }
  190. catch (Exception e)
  191. {
  192. return LuaDLL.toluaL_exception(L, e);
  193. }
  194. }
  195. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  196. static int FindSlot(IntPtr L)
  197. {
  198. try
  199. {
  200. ToLua.CheckArgsCount(L, 2);
  201. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  202. string arg0 = ToLua.CheckString(L, 2);
  203. Spine.Slot o = obj.FindSlot(arg0);
  204. ToLua.PushObject(L, o);
  205. return 1;
  206. }
  207. catch (Exception e)
  208. {
  209. return LuaDLL.toluaL_exception(L, e);
  210. }
  211. }
  212. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  213. static int FindSlotIndex(IntPtr L)
  214. {
  215. try
  216. {
  217. ToLua.CheckArgsCount(L, 2);
  218. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  219. string arg0 = ToLua.CheckString(L, 2);
  220. int o = obj.FindSlotIndex(arg0);
  221. LuaDLL.lua_pushinteger(L, o);
  222. return 1;
  223. }
  224. catch (Exception e)
  225. {
  226. return LuaDLL.toluaL_exception(L, e);
  227. }
  228. }
  229. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  230. static int SetSkin(IntPtr L)
  231. {
  232. try
  233. {
  234. int count = LuaDLL.lua_gettop(L);
  235. if (count == 2 && TypeChecker.CheckTypes<string>(L, 2))
  236. {
  237. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  238. string arg0 = ToLua.ToString(L, 2);
  239. obj.SetSkin(arg0);
  240. return 0;
  241. }
  242. else if (count == 2 && TypeChecker.CheckTypes<Spine.Skin>(L, 2))
  243. {
  244. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  245. Spine.Skin arg0 = (Spine.Skin)ToLua.ToObject(L, 2);
  246. obj.SetSkin(arg0);
  247. return 0;
  248. }
  249. else
  250. {
  251. return LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.Skeleton.SetSkin");
  252. }
  253. }
  254. catch (Exception e)
  255. {
  256. return LuaDLL.toluaL_exception(L, e);
  257. }
  258. }
  259. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  260. static int GetAttachment(IntPtr L)
  261. {
  262. try
  263. {
  264. int count = LuaDLL.lua_gettop(L);
  265. if (count == 3 && TypeChecker.CheckTypes<string, string>(L, 2))
  266. {
  267. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  268. string arg0 = ToLua.ToString(L, 2);
  269. string arg1 = ToLua.ToString(L, 3);
  270. Spine.Attachment o = obj.GetAttachment(arg0, arg1);
  271. ToLua.PushObject(L, o);
  272. return 1;
  273. }
  274. else if (count == 3 && TypeChecker.CheckTypes<int, string>(L, 2))
  275. {
  276. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  277. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  278. string arg1 = ToLua.ToString(L, 3);
  279. Spine.Attachment o = obj.GetAttachment(arg0, arg1);
  280. ToLua.PushObject(L, o);
  281. return 1;
  282. }
  283. else
  284. {
  285. return LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.Skeleton.GetAttachment");
  286. }
  287. }
  288. catch (Exception e)
  289. {
  290. return LuaDLL.toluaL_exception(L, e);
  291. }
  292. }
  293. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  294. static int SetAttachment(IntPtr L)
  295. {
  296. try
  297. {
  298. ToLua.CheckArgsCount(L, 3);
  299. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  300. string arg0 = ToLua.CheckString(L, 2);
  301. string arg1 = ToLua.CheckString(L, 3);
  302. obj.SetAttachment(arg0, arg1);
  303. return 0;
  304. }
  305. catch (Exception e)
  306. {
  307. return LuaDLL.toluaL_exception(L, e);
  308. }
  309. }
  310. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  311. static int FindIkConstraint(IntPtr L)
  312. {
  313. try
  314. {
  315. ToLua.CheckArgsCount(L, 2);
  316. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  317. string arg0 = ToLua.CheckString(L, 2);
  318. Spine.IkConstraint o = obj.FindIkConstraint(arg0);
  319. ToLua.PushObject(L, o);
  320. return 1;
  321. }
  322. catch (Exception e)
  323. {
  324. return LuaDLL.toluaL_exception(L, e);
  325. }
  326. }
  327. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  328. static int FindTransformConstraint(IntPtr L)
  329. {
  330. try
  331. {
  332. ToLua.CheckArgsCount(L, 2);
  333. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  334. string arg0 = ToLua.CheckString(L, 2);
  335. Spine.TransformConstraint o = obj.FindTransformConstraint(arg0);
  336. ToLua.PushObject(L, o);
  337. return 1;
  338. }
  339. catch (Exception e)
  340. {
  341. return LuaDLL.toluaL_exception(L, e);
  342. }
  343. }
  344. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  345. static int FindPathConstraint(IntPtr L)
  346. {
  347. try
  348. {
  349. ToLua.CheckArgsCount(L, 2);
  350. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  351. string arg0 = ToLua.CheckString(L, 2);
  352. Spine.PathConstraint o = obj.FindPathConstraint(arg0);
  353. ToLua.PushObject(L, o);
  354. return 1;
  355. }
  356. catch (Exception e)
  357. {
  358. return LuaDLL.toluaL_exception(L, e);
  359. }
  360. }
  361. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  362. static int Update(IntPtr L)
  363. {
  364. try
  365. {
  366. ToLua.CheckArgsCount(L, 2);
  367. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  368. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  369. obj.Update(arg0);
  370. return 0;
  371. }
  372. catch (Exception e)
  373. {
  374. return LuaDLL.toluaL_exception(L, e);
  375. }
  376. }
  377. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  378. static int GetBounds(IntPtr L)
  379. {
  380. try
  381. {
  382. ToLua.CheckArgsCount(L, 6);
  383. Spine.Skeleton obj = (Spine.Skeleton)ToLua.CheckObject<Spine.Skeleton>(L, 1);
  384. float arg0;
  385. float arg1;
  386. float arg2;
  387. float arg3;
  388. float[] arg4 = ToLua.CheckNumberArray<float>(L, 6);
  389. obj.GetBounds(out arg0, out arg1, out arg2, out arg3, ref arg4);
  390. LuaDLL.lua_pushnumber(L, arg0);
  391. LuaDLL.lua_pushnumber(L, arg1);
  392. LuaDLL.lua_pushnumber(L, arg2);
  393. LuaDLL.lua_pushnumber(L, arg3);
  394. ToLua.Push(L, arg4);
  395. return 5;
  396. }
  397. catch (Exception e)
  398. {
  399. return LuaDLL.toluaL_exception(L, e);
  400. }
  401. }
  402. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  403. static int get_Data(IntPtr L)
  404. {
  405. object o = null;
  406. try
  407. {
  408. o = ToLua.ToObject(L, 1);
  409. Spine.Skeleton obj = (Spine.Skeleton)o;
  410. Spine.SkeletonData ret = obj.Data;
  411. ToLua.PushObject(L, ret);
  412. return 1;
  413. }
  414. catch(Exception e)
  415. {
  416. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Data on a nil value");
  417. }
  418. }
  419. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  420. static int get_Bones(IntPtr L)
  421. {
  422. object o = null;
  423. try
  424. {
  425. o = ToLua.ToObject(L, 1);
  426. Spine.Skeleton obj = (Spine.Skeleton)o;
  427. Spine.ExposedList<Spine.Bone> ret = obj.Bones;
  428. ToLua.PushObject(L, ret);
  429. return 1;
  430. }
  431. catch(Exception e)
  432. {
  433. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Bones on a nil value");
  434. }
  435. }
  436. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  437. static int get_UpdateCacheList(IntPtr L)
  438. {
  439. object o = null;
  440. try
  441. {
  442. o = ToLua.ToObject(L, 1);
  443. Spine.Skeleton obj = (Spine.Skeleton)o;
  444. Spine.ExposedList<Spine.IUpdatable> ret = obj.UpdateCacheList;
  445. ToLua.PushObject(L, ret);
  446. return 1;
  447. }
  448. catch(Exception e)
  449. {
  450. return LuaDLL.toluaL_exception(L, e, o, "attempt to index UpdateCacheList on a nil value");
  451. }
  452. }
  453. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  454. static int get_Slots(IntPtr L)
  455. {
  456. object o = null;
  457. try
  458. {
  459. o = ToLua.ToObject(L, 1);
  460. Spine.Skeleton obj = (Spine.Skeleton)o;
  461. Spine.ExposedList<Spine.Slot> ret = obj.Slots;
  462. ToLua.PushObject(L, ret);
  463. return 1;
  464. }
  465. catch(Exception e)
  466. {
  467. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Slots on a nil value");
  468. }
  469. }
  470. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  471. static int get_DrawOrder(IntPtr L)
  472. {
  473. object o = null;
  474. try
  475. {
  476. o = ToLua.ToObject(L, 1);
  477. Spine.Skeleton obj = (Spine.Skeleton)o;
  478. Spine.ExposedList<Spine.Slot> ret = obj.DrawOrder;
  479. ToLua.PushObject(L, ret);
  480. return 1;
  481. }
  482. catch(Exception e)
  483. {
  484. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DrawOrder on a nil value");
  485. }
  486. }
  487. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  488. static int get_IkConstraints(IntPtr L)
  489. {
  490. object o = null;
  491. try
  492. {
  493. o = ToLua.ToObject(L, 1);
  494. Spine.Skeleton obj = (Spine.Skeleton)o;
  495. Spine.ExposedList<Spine.IkConstraint> ret = obj.IkConstraints;
  496. ToLua.PushObject(L, ret);
  497. return 1;
  498. }
  499. catch(Exception e)
  500. {
  501. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IkConstraints on a nil value");
  502. }
  503. }
  504. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  505. static int get_PathConstraints(IntPtr L)
  506. {
  507. object o = null;
  508. try
  509. {
  510. o = ToLua.ToObject(L, 1);
  511. Spine.Skeleton obj = (Spine.Skeleton)o;
  512. Spine.ExposedList<Spine.PathConstraint> ret = obj.PathConstraints;
  513. ToLua.PushObject(L, ret);
  514. return 1;
  515. }
  516. catch(Exception e)
  517. {
  518. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PathConstraints on a nil value");
  519. }
  520. }
  521. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  522. static int get_TransformConstraints(IntPtr L)
  523. {
  524. object o = null;
  525. try
  526. {
  527. o = ToLua.ToObject(L, 1);
  528. Spine.Skeleton obj = (Spine.Skeleton)o;
  529. Spine.ExposedList<Spine.TransformConstraint> ret = obj.TransformConstraints;
  530. ToLua.PushObject(L, ret);
  531. return 1;
  532. }
  533. catch(Exception e)
  534. {
  535. return LuaDLL.toluaL_exception(L, e, o, "attempt to index TransformConstraints on a nil value");
  536. }
  537. }
  538. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  539. static int get_Skin(IntPtr L)
  540. {
  541. object o = null;
  542. try
  543. {
  544. o = ToLua.ToObject(L, 1);
  545. Spine.Skeleton obj = (Spine.Skeleton)o;
  546. Spine.Skin ret = obj.Skin;
  547. ToLua.PushObject(L, ret);
  548. return 1;
  549. }
  550. catch(Exception e)
  551. {
  552. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Skin on a nil value");
  553. }
  554. }
  555. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  556. static int get_R(IntPtr L)
  557. {
  558. object o = null;
  559. try
  560. {
  561. o = ToLua.ToObject(L, 1);
  562. Spine.Skeleton obj = (Spine.Skeleton)o;
  563. float ret = obj.R;
  564. LuaDLL.lua_pushnumber(L, ret);
  565. return 1;
  566. }
  567. catch(Exception e)
  568. {
  569. return LuaDLL.toluaL_exception(L, e, o, "attempt to index R on a nil value");
  570. }
  571. }
  572. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  573. static int get_G(IntPtr L)
  574. {
  575. object o = null;
  576. try
  577. {
  578. o = ToLua.ToObject(L, 1);
  579. Spine.Skeleton obj = (Spine.Skeleton)o;
  580. float ret = obj.G;
  581. LuaDLL.lua_pushnumber(L, ret);
  582. return 1;
  583. }
  584. catch(Exception e)
  585. {
  586. return LuaDLL.toluaL_exception(L, e, o, "attempt to index G on a nil value");
  587. }
  588. }
  589. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  590. static int get_B(IntPtr L)
  591. {
  592. object o = null;
  593. try
  594. {
  595. o = ToLua.ToObject(L, 1);
  596. Spine.Skeleton obj = (Spine.Skeleton)o;
  597. float ret = obj.B;
  598. LuaDLL.lua_pushnumber(L, ret);
  599. return 1;
  600. }
  601. catch(Exception e)
  602. {
  603. return LuaDLL.toluaL_exception(L, e, o, "attempt to index B on a nil value");
  604. }
  605. }
  606. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  607. static int get_A(IntPtr L)
  608. {
  609. object o = null;
  610. try
  611. {
  612. o = ToLua.ToObject(L, 1);
  613. Spine.Skeleton obj = (Spine.Skeleton)o;
  614. float ret = obj.A;
  615. LuaDLL.lua_pushnumber(L, ret);
  616. return 1;
  617. }
  618. catch(Exception e)
  619. {
  620. return LuaDLL.toluaL_exception(L, e, o, "attempt to index A on a nil value");
  621. }
  622. }
  623. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  624. static int get_Time(IntPtr L)
  625. {
  626. object o = null;
  627. try
  628. {
  629. o = ToLua.ToObject(L, 1);
  630. Spine.Skeleton obj = (Spine.Skeleton)o;
  631. float ret = obj.Time;
  632. LuaDLL.lua_pushnumber(L, ret);
  633. return 1;
  634. }
  635. catch(Exception e)
  636. {
  637. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Time on a nil value");
  638. }
  639. }
  640. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  641. static int get_X(IntPtr L)
  642. {
  643. object o = null;
  644. try
  645. {
  646. o = ToLua.ToObject(L, 1);
  647. Spine.Skeleton obj = (Spine.Skeleton)o;
  648. float ret = obj.X;
  649. LuaDLL.lua_pushnumber(L, ret);
  650. return 1;
  651. }
  652. catch(Exception e)
  653. {
  654. return LuaDLL.toluaL_exception(L, e, o, "attempt to index X on a nil value");
  655. }
  656. }
  657. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  658. static int get_Y(IntPtr L)
  659. {
  660. object o = null;
  661. try
  662. {
  663. o = ToLua.ToObject(L, 1);
  664. Spine.Skeleton obj = (Spine.Skeleton)o;
  665. float ret = obj.Y;
  666. LuaDLL.lua_pushnumber(L, ret);
  667. return 1;
  668. }
  669. catch(Exception e)
  670. {
  671. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Y on a nil value");
  672. }
  673. }
  674. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  675. static int get_ScaleX(IntPtr L)
  676. {
  677. object o = null;
  678. try
  679. {
  680. o = ToLua.ToObject(L, 1);
  681. Spine.Skeleton obj = (Spine.Skeleton)o;
  682. float ret = obj.ScaleX;
  683. LuaDLL.lua_pushnumber(L, ret);
  684. return 1;
  685. }
  686. catch(Exception e)
  687. {
  688. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScaleX on a nil value");
  689. }
  690. }
  691. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  692. static int get_ScaleY(IntPtr L)
  693. {
  694. object o = null;
  695. try
  696. {
  697. o = ToLua.ToObject(L, 1);
  698. Spine.Skeleton obj = (Spine.Skeleton)o;
  699. float ret = obj.ScaleY;
  700. LuaDLL.lua_pushnumber(L, ret);
  701. return 1;
  702. }
  703. catch(Exception e)
  704. {
  705. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScaleY on a nil value");
  706. }
  707. }
  708. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  709. static int get_RootBone(IntPtr L)
  710. {
  711. object o = null;
  712. try
  713. {
  714. o = ToLua.ToObject(L, 1);
  715. Spine.Skeleton obj = (Spine.Skeleton)o;
  716. Spine.Bone ret = obj.RootBone;
  717. ToLua.PushObject(L, ret);
  718. return 1;
  719. }
  720. catch(Exception e)
  721. {
  722. return LuaDLL.toluaL_exception(L, e, o, "attempt to index RootBone on a nil value");
  723. }
  724. }
  725. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  726. static int set_Skin(IntPtr L)
  727. {
  728. object o = null;
  729. try
  730. {
  731. o = ToLua.ToObject(L, 1);
  732. Spine.Skeleton obj = (Spine.Skeleton)o;
  733. Spine.Skin arg0 = (Spine.Skin)ToLua.CheckObject<Spine.Skin>(L, 2);
  734. obj.Skin = arg0;
  735. return 0;
  736. }
  737. catch(Exception e)
  738. {
  739. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Skin on a nil value");
  740. }
  741. }
  742. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  743. static int set_R(IntPtr L)
  744. {
  745. object o = null;
  746. try
  747. {
  748. o = ToLua.ToObject(L, 1);
  749. Spine.Skeleton obj = (Spine.Skeleton)o;
  750. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  751. obj.R = arg0;
  752. return 0;
  753. }
  754. catch(Exception e)
  755. {
  756. return LuaDLL.toluaL_exception(L, e, o, "attempt to index R on a nil value");
  757. }
  758. }
  759. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  760. static int set_G(IntPtr L)
  761. {
  762. object o = null;
  763. try
  764. {
  765. o = ToLua.ToObject(L, 1);
  766. Spine.Skeleton obj = (Spine.Skeleton)o;
  767. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  768. obj.G = arg0;
  769. return 0;
  770. }
  771. catch(Exception e)
  772. {
  773. return LuaDLL.toluaL_exception(L, e, o, "attempt to index G on a nil value");
  774. }
  775. }
  776. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  777. static int set_B(IntPtr L)
  778. {
  779. object o = null;
  780. try
  781. {
  782. o = ToLua.ToObject(L, 1);
  783. Spine.Skeleton obj = (Spine.Skeleton)o;
  784. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  785. obj.B = arg0;
  786. return 0;
  787. }
  788. catch(Exception e)
  789. {
  790. return LuaDLL.toluaL_exception(L, e, o, "attempt to index B on a nil value");
  791. }
  792. }
  793. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  794. static int set_A(IntPtr L)
  795. {
  796. object o = null;
  797. try
  798. {
  799. o = ToLua.ToObject(L, 1);
  800. Spine.Skeleton obj = (Spine.Skeleton)o;
  801. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  802. obj.A = arg0;
  803. return 0;
  804. }
  805. catch(Exception e)
  806. {
  807. return LuaDLL.toluaL_exception(L, e, o, "attempt to index A on a nil value");
  808. }
  809. }
  810. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  811. static int set_Time(IntPtr L)
  812. {
  813. object o = null;
  814. try
  815. {
  816. o = ToLua.ToObject(L, 1);
  817. Spine.Skeleton obj = (Spine.Skeleton)o;
  818. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  819. obj.Time = arg0;
  820. return 0;
  821. }
  822. catch(Exception e)
  823. {
  824. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Time on a nil value");
  825. }
  826. }
  827. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  828. static int set_X(IntPtr L)
  829. {
  830. object o = null;
  831. try
  832. {
  833. o = ToLua.ToObject(L, 1);
  834. Spine.Skeleton obj = (Spine.Skeleton)o;
  835. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  836. obj.X = arg0;
  837. return 0;
  838. }
  839. catch(Exception e)
  840. {
  841. return LuaDLL.toluaL_exception(L, e, o, "attempt to index X on a nil value");
  842. }
  843. }
  844. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  845. static int set_Y(IntPtr L)
  846. {
  847. object o = null;
  848. try
  849. {
  850. o = ToLua.ToObject(L, 1);
  851. Spine.Skeleton obj = (Spine.Skeleton)o;
  852. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  853. obj.Y = arg0;
  854. return 0;
  855. }
  856. catch(Exception e)
  857. {
  858. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Y on a nil value");
  859. }
  860. }
  861. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  862. static int set_ScaleX(IntPtr L)
  863. {
  864. object o = null;
  865. try
  866. {
  867. o = ToLua.ToObject(L, 1);
  868. Spine.Skeleton obj = (Spine.Skeleton)o;
  869. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  870. obj.ScaleX = arg0;
  871. return 0;
  872. }
  873. catch(Exception e)
  874. {
  875. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScaleX on a nil value");
  876. }
  877. }
  878. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  879. static int set_ScaleY(IntPtr L)
  880. {
  881. object o = null;
  882. try
  883. {
  884. o = ToLua.ToObject(L, 1);
  885. Spine.Skeleton obj = (Spine.Skeleton)o;
  886. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  887. obj.ScaleY = arg0;
  888. return 0;
  889. }
  890. catch(Exception e)
  891. {
  892. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScaleY on a nil value");
  893. }
  894. }
  895. }