TMPro_TMP_TextInfoWrap.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class TMPro_TMP_TextInfoWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(TMPro.TMP_TextInfo), typeof(System.Object), "TMP_TextInfo");
  9. L.RegFunction("Clear", Clear);
  10. L.RegFunction("ClearMeshInfo", ClearMeshInfo);
  11. L.RegFunction("ClearAllMeshInfo", ClearAllMeshInfo);
  12. L.RegFunction("ResetVertexLayout", ResetVertexLayout);
  13. L.RegFunction("ClearUnusedVertices", ClearUnusedVertices);
  14. L.RegFunction("ClearLineInfo", ClearLineInfo);
  15. L.RegFunction("CopyMeshInfoVertexData", CopyMeshInfoVertexData);
  16. L.RegFunction("New", _CreateTMPro_TMP_TextInfo);
  17. L.RegFunction("__tostring", ToLua.op_ToString);
  18. L.RegVar("textComponent", get_textComponent, set_textComponent);
  19. L.RegVar("characterCount", get_characterCount, set_characterCount);
  20. L.RegVar("spriteCount", get_spriteCount, set_spriteCount);
  21. L.RegVar("spaceCount", get_spaceCount, set_spaceCount);
  22. L.RegVar("wordCount", get_wordCount, set_wordCount);
  23. L.RegVar("linkCount", get_linkCount, set_linkCount);
  24. L.RegVar("lineCount", get_lineCount, set_lineCount);
  25. L.RegVar("pageCount", get_pageCount, set_pageCount);
  26. L.RegVar("materialCount", get_materialCount, set_materialCount);
  27. L.RegVar("characterInfo", get_characterInfo, set_characterInfo);
  28. L.RegVar("wordInfo", get_wordInfo, set_wordInfo);
  29. L.RegVar("linkInfo", get_linkInfo, set_linkInfo);
  30. L.RegVar("lineInfo", get_lineInfo, set_lineInfo);
  31. L.RegVar("pageInfo", get_pageInfo, set_pageInfo);
  32. L.RegVar("meshInfo", get_meshInfo, set_meshInfo);
  33. L.EndClass();
  34. }
  35. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  36. static int _CreateTMPro_TMP_TextInfo(IntPtr L)
  37. {
  38. try
  39. {
  40. int count = LuaDLL.lua_gettop(L);
  41. if (count == 0)
  42. {
  43. TMPro.TMP_TextInfo obj = new TMPro.TMP_TextInfo();
  44. ToLua.PushObject(L, obj);
  45. return 1;
  46. }
  47. else if (count == 1)
  48. {
  49. TMPro.TMP_Text arg0 = (TMPro.TMP_Text)ToLua.CheckObject<TMPro.TMP_Text>(L, 1);
  50. TMPro.TMP_TextInfo obj = new TMPro.TMP_TextInfo(arg0);
  51. ToLua.PushObject(L, obj);
  52. return 1;
  53. }
  54. else
  55. {
  56. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: TMPro.TMP_TextInfo.New");
  57. }
  58. }
  59. catch (Exception e)
  60. {
  61. return LuaDLL.toluaL_exception(L, e);
  62. }
  63. }
  64. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  65. static int Clear(IntPtr L)
  66. {
  67. try
  68. {
  69. ToLua.CheckArgsCount(L, 1);
  70. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)ToLua.CheckObject<TMPro.TMP_TextInfo>(L, 1);
  71. obj.Clear();
  72. return 0;
  73. }
  74. catch (Exception e)
  75. {
  76. return LuaDLL.toluaL_exception(L, e);
  77. }
  78. }
  79. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  80. static int ClearMeshInfo(IntPtr L)
  81. {
  82. try
  83. {
  84. ToLua.CheckArgsCount(L, 2);
  85. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)ToLua.CheckObject<TMPro.TMP_TextInfo>(L, 1);
  86. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  87. obj.ClearMeshInfo(arg0);
  88. return 0;
  89. }
  90. catch (Exception e)
  91. {
  92. return LuaDLL.toluaL_exception(L, e);
  93. }
  94. }
  95. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  96. static int ClearAllMeshInfo(IntPtr L)
  97. {
  98. try
  99. {
  100. ToLua.CheckArgsCount(L, 1);
  101. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)ToLua.CheckObject<TMPro.TMP_TextInfo>(L, 1);
  102. obj.ClearAllMeshInfo();
  103. return 0;
  104. }
  105. catch (Exception e)
  106. {
  107. return LuaDLL.toluaL_exception(L, e);
  108. }
  109. }
  110. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  111. static int ResetVertexLayout(IntPtr L)
  112. {
  113. try
  114. {
  115. ToLua.CheckArgsCount(L, 2);
  116. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)ToLua.CheckObject<TMPro.TMP_TextInfo>(L, 1);
  117. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  118. obj.ResetVertexLayout(arg0);
  119. return 0;
  120. }
  121. catch (Exception e)
  122. {
  123. return LuaDLL.toluaL_exception(L, e);
  124. }
  125. }
  126. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  127. static int ClearUnusedVertices(IntPtr L)
  128. {
  129. try
  130. {
  131. ToLua.CheckArgsCount(L, 2);
  132. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)ToLua.CheckObject<TMPro.TMP_TextInfo>(L, 1);
  133. TMPro.MaterialReference[] arg0 = ToLua.CheckStructArray<TMPro.MaterialReference>(L, 2);
  134. obj.ClearUnusedVertices(arg0);
  135. return 0;
  136. }
  137. catch (Exception e)
  138. {
  139. return LuaDLL.toluaL_exception(L, e);
  140. }
  141. }
  142. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  143. static int ClearLineInfo(IntPtr L)
  144. {
  145. try
  146. {
  147. ToLua.CheckArgsCount(L, 1);
  148. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)ToLua.CheckObject<TMPro.TMP_TextInfo>(L, 1);
  149. obj.ClearLineInfo();
  150. return 0;
  151. }
  152. catch (Exception e)
  153. {
  154. return LuaDLL.toluaL_exception(L, e);
  155. }
  156. }
  157. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  158. static int CopyMeshInfoVertexData(IntPtr L)
  159. {
  160. try
  161. {
  162. ToLua.CheckArgsCount(L, 1);
  163. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)ToLua.CheckObject<TMPro.TMP_TextInfo>(L, 1);
  164. TMPro.TMP_MeshInfo[] o = obj.CopyMeshInfoVertexData();
  165. ToLua.Push(L, o);
  166. return 1;
  167. }
  168. catch (Exception e)
  169. {
  170. return LuaDLL.toluaL_exception(L, e);
  171. }
  172. }
  173. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  174. static int get_textComponent(IntPtr L)
  175. {
  176. object o = null;
  177. try
  178. {
  179. o = ToLua.ToObject(L, 1);
  180. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  181. TMPro.TMP_Text ret = obj.textComponent;
  182. ToLua.Push(L, ret);
  183. return 1;
  184. }
  185. catch(Exception e)
  186. {
  187. return LuaDLL.toluaL_exception(L, e, o, "attempt to index textComponent on a nil value");
  188. }
  189. }
  190. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  191. static int get_characterCount(IntPtr L)
  192. {
  193. object o = null;
  194. try
  195. {
  196. o = ToLua.ToObject(L, 1);
  197. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  198. int ret = obj.characterCount;
  199. LuaDLL.lua_pushinteger(L, ret);
  200. return 1;
  201. }
  202. catch(Exception e)
  203. {
  204. return LuaDLL.toluaL_exception(L, e, o, "attempt to index characterCount on a nil value");
  205. }
  206. }
  207. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  208. static int get_spriteCount(IntPtr L)
  209. {
  210. object o = null;
  211. try
  212. {
  213. o = ToLua.ToObject(L, 1);
  214. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  215. int ret = obj.spriteCount;
  216. LuaDLL.lua_pushinteger(L, ret);
  217. return 1;
  218. }
  219. catch(Exception e)
  220. {
  221. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spriteCount on a nil value");
  222. }
  223. }
  224. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  225. static int get_spaceCount(IntPtr L)
  226. {
  227. object o = null;
  228. try
  229. {
  230. o = ToLua.ToObject(L, 1);
  231. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  232. int ret = obj.spaceCount;
  233. LuaDLL.lua_pushinteger(L, ret);
  234. return 1;
  235. }
  236. catch(Exception e)
  237. {
  238. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spaceCount on a nil value");
  239. }
  240. }
  241. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  242. static int get_wordCount(IntPtr L)
  243. {
  244. object o = null;
  245. try
  246. {
  247. o = ToLua.ToObject(L, 1);
  248. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  249. int ret = obj.wordCount;
  250. LuaDLL.lua_pushinteger(L, ret);
  251. return 1;
  252. }
  253. catch(Exception e)
  254. {
  255. return LuaDLL.toluaL_exception(L, e, o, "attempt to index wordCount on a nil value");
  256. }
  257. }
  258. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  259. static int get_linkCount(IntPtr L)
  260. {
  261. object o = null;
  262. try
  263. {
  264. o = ToLua.ToObject(L, 1);
  265. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  266. int ret = obj.linkCount;
  267. LuaDLL.lua_pushinteger(L, ret);
  268. return 1;
  269. }
  270. catch(Exception e)
  271. {
  272. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkCount on a nil value");
  273. }
  274. }
  275. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  276. static int get_lineCount(IntPtr L)
  277. {
  278. object o = null;
  279. try
  280. {
  281. o = ToLua.ToObject(L, 1);
  282. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  283. int ret = obj.lineCount;
  284. LuaDLL.lua_pushinteger(L, ret);
  285. return 1;
  286. }
  287. catch(Exception e)
  288. {
  289. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lineCount on a nil value");
  290. }
  291. }
  292. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  293. static int get_pageCount(IntPtr L)
  294. {
  295. object o = null;
  296. try
  297. {
  298. o = ToLua.ToObject(L, 1);
  299. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  300. int ret = obj.pageCount;
  301. LuaDLL.lua_pushinteger(L, ret);
  302. return 1;
  303. }
  304. catch(Exception e)
  305. {
  306. return LuaDLL.toluaL_exception(L, e, o, "attempt to index pageCount on a nil value");
  307. }
  308. }
  309. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  310. static int get_materialCount(IntPtr L)
  311. {
  312. object o = null;
  313. try
  314. {
  315. o = ToLua.ToObject(L, 1);
  316. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  317. int ret = obj.materialCount;
  318. LuaDLL.lua_pushinteger(L, ret);
  319. return 1;
  320. }
  321. catch(Exception e)
  322. {
  323. return LuaDLL.toluaL_exception(L, e, o, "attempt to index materialCount on a nil value");
  324. }
  325. }
  326. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  327. static int get_characterInfo(IntPtr L)
  328. {
  329. object o = null;
  330. try
  331. {
  332. o = ToLua.ToObject(L, 1);
  333. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  334. TMPro.TMP_CharacterInfo[] ret = obj.characterInfo;
  335. ToLua.Push(L, ret);
  336. return 1;
  337. }
  338. catch(Exception e)
  339. {
  340. return LuaDLL.toluaL_exception(L, e, o, "attempt to index characterInfo on a nil value");
  341. }
  342. }
  343. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  344. static int get_wordInfo(IntPtr L)
  345. {
  346. object o = null;
  347. try
  348. {
  349. o = ToLua.ToObject(L, 1);
  350. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  351. TMPro.TMP_WordInfo[] ret = obj.wordInfo;
  352. ToLua.Push(L, ret);
  353. return 1;
  354. }
  355. catch(Exception e)
  356. {
  357. return LuaDLL.toluaL_exception(L, e, o, "attempt to index wordInfo on a nil value");
  358. }
  359. }
  360. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  361. static int get_linkInfo(IntPtr L)
  362. {
  363. object o = null;
  364. try
  365. {
  366. o = ToLua.ToObject(L, 1);
  367. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  368. TMPro.TMP_LinkInfo[] ret = obj.linkInfo;
  369. ToLua.Push(L, ret);
  370. return 1;
  371. }
  372. catch(Exception e)
  373. {
  374. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkInfo on a nil value");
  375. }
  376. }
  377. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  378. static int get_lineInfo(IntPtr L)
  379. {
  380. object o = null;
  381. try
  382. {
  383. o = ToLua.ToObject(L, 1);
  384. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  385. TMPro.TMP_LineInfo[] ret = obj.lineInfo;
  386. ToLua.Push(L, ret);
  387. return 1;
  388. }
  389. catch(Exception e)
  390. {
  391. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lineInfo on a nil value");
  392. }
  393. }
  394. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  395. static int get_pageInfo(IntPtr L)
  396. {
  397. object o = null;
  398. try
  399. {
  400. o = ToLua.ToObject(L, 1);
  401. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  402. TMPro.TMP_PageInfo[] ret = obj.pageInfo;
  403. ToLua.Push(L, ret);
  404. return 1;
  405. }
  406. catch(Exception e)
  407. {
  408. return LuaDLL.toluaL_exception(L, e, o, "attempt to index pageInfo on a nil value");
  409. }
  410. }
  411. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  412. static int get_meshInfo(IntPtr L)
  413. {
  414. object o = null;
  415. try
  416. {
  417. o = ToLua.ToObject(L, 1);
  418. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  419. TMPro.TMP_MeshInfo[] ret = obj.meshInfo;
  420. ToLua.Push(L, ret);
  421. return 1;
  422. }
  423. catch(Exception e)
  424. {
  425. return LuaDLL.toluaL_exception(L, e, o, "attempt to index meshInfo on a nil value");
  426. }
  427. }
  428. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  429. static int set_textComponent(IntPtr L)
  430. {
  431. object o = null;
  432. try
  433. {
  434. o = ToLua.ToObject(L, 1);
  435. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  436. TMPro.TMP_Text arg0 = (TMPro.TMP_Text)ToLua.CheckObject<TMPro.TMP_Text>(L, 2);
  437. obj.textComponent = arg0;
  438. return 0;
  439. }
  440. catch(Exception e)
  441. {
  442. return LuaDLL.toluaL_exception(L, e, o, "attempt to index textComponent on a nil value");
  443. }
  444. }
  445. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  446. static int set_characterCount(IntPtr L)
  447. {
  448. object o = null;
  449. try
  450. {
  451. o = ToLua.ToObject(L, 1);
  452. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  453. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  454. obj.characterCount = arg0;
  455. return 0;
  456. }
  457. catch(Exception e)
  458. {
  459. return LuaDLL.toluaL_exception(L, e, o, "attempt to index characterCount on a nil value");
  460. }
  461. }
  462. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  463. static int set_spriteCount(IntPtr L)
  464. {
  465. object o = null;
  466. try
  467. {
  468. o = ToLua.ToObject(L, 1);
  469. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  470. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  471. obj.spriteCount = arg0;
  472. return 0;
  473. }
  474. catch(Exception e)
  475. {
  476. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spriteCount on a nil value");
  477. }
  478. }
  479. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  480. static int set_spaceCount(IntPtr L)
  481. {
  482. object o = null;
  483. try
  484. {
  485. o = ToLua.ToObject(L, 1);
  486. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  487. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  488. obj.spaceCount = arg0;
  489. return 0;
  490. }
  491. catch(Exception e)
  492. {
  493. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spaceCount on a nil value");
  494. }
  495. }
  496. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  497. static int set_wordCount(IntPtr L)
  498. {
  499. object o = null;
  500. try
  501. {
  502. o = ToLua.ToObject(L, 1);
  503. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  504. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  505. obj.wordCount = arg0;
  506. return 0;
  507. }
  508. catch(Exception e)
  509. {
  510. return LuaDLL.toluaL_exception(L, e, o, "attempt to index wordCount on a nil value");
  511. }
  512. }
  513. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  514. static int set_linkCount(IntPtr L)
  515. {
  516. object o = null;
  517. try
  518. {
  519. o = ToLua.ToObject(L, 1);
  520. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  521. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  522. obj.linkCount = arg0;
  523. return 0;
  524. }
  525. catch(Exception e)
  526. {
  527. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkCount on a nil value");
  528. }
  529. }
  530. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  531. static int set_lineCount(IntPtr L)
  532. {
  533. object o = null;
  534. try
  535. {
  536. o = ToLua.ToObject(L, 1);
  537. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  538. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  539. obj.lineCount = arg0;
  540. return 0;
  541. }
  542. catch(Exception e)
  543. {
  544. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lineCount on a nil value");
  545. }
  546. }
  547. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  548. static int set_pageCount(IntPtr L)
  549. {
  550. object o = null;
  551. try
  552. {
  553. o = ToLua.ToObject(L, 1);
  554. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  555. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  556. obj.pageCount = arg0;
  557. return 0;
  558. }
  559. catch(Exception e)
  560. {
  561. return LuaDLL.toluaL_exception(L, e, o, "attempt to index pageCount on a nil value");
  562. }
  563. }
  564. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  565. static int set_materialCount(IntPtr L)
  566. {
  567. object o = null;
  568. try
  569. {
  570. o = ToLua.ToObject(L, 1);
  571. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  572. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  573. obj.materialCount = arg0;
  574. return 0;
  575. }
  576. catch(Exception e)
  577. {
  578. return LuaDLL.toluaL_exception(L, e, o, "attempt to index materialCount on a nil value");
  579. }
  580. }
  581. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  582. static int set_characterInfo(IntPtr L)
  583. {
  584. object o = null;
  585. try
  586. {
  587. o = ToLua.ToObject(L, 1);
  588. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  589. TMPro.TMP_CharacterInfo[] arg0 = ToLua.CheckStructArray<TMPro.TMP_CharacterInfo>(L, 2);
  590. obj.characterInfo = arg0;
  591. return 0;
  592. }
  593. catch(Exception e)
  594. {
  595. return LuaDLL.toluaL_exception(L, e, o, "attempt to index characterInfo on a nil value");
  596. }
  597. }
  598. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  599. static int set_wordInfo(IntPtr L)
  600. {
  601. object o = null;
  602. try
  603. {
  604. o = ToLua.ToObject(L, 1);
  605. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  606. TMPro.TMP_WordInfo[] arg0 = ToLua.CheckStructArray<TMPro.TMP_WordInfo>(L, 2);
  607. obj.wordInfo = arg0;
  608. return 0;
  609. }
  610. catch(Exception e)
  611. {
  612. return LuaDLL.toluaL_exception(L, e, o, "attempt to index wordInfo on a nil value");
  613. }
  614. }
  615. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  616. static int set_linkInfo(IntPtr L)
  617. {
  618. object o = null;
  619. try
  620. {
  621. o = ToLua.ToObject(L, 1);
  622. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  623. TMPro.TMP_LinkInfo[] arg0 = ToLua.CheckStructArray<TMPro.TMP_LinkInfo>(L, 2);
  624. obj.linkInfo = arg0;
  625. return 0;
  626. }
  627. catch(Exception e)
  628. {
  629. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkInfo on a nil value");
  630. }
  631. }
  632. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  633. static int set_lineInfo(IntPtr L)
  634. {
  635. object o = null;
  636. try
  637. {
  638. o = ToLua.ToObject(L, 1);
  639. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  640. TMPro.TMP_LineInfo[] arg0 = ToLua.CheckStructArray<TMPro.TMP_LineInfo>(L, 2);
  641. obj.lineInfo = arg0;
  642. return 0;
  643. }
  644. catch(Exception e)
  645. {
  646. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lineInfo on a nil value");
  647. }
  648. }
  649. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  650. static int set_pageInfo(IntPtr L)
  651. {
  652. object o = null;
  653. try
  654. {
  655. o = ToLua.ToObject(L, 1);
  656. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  657. TMPro.TMP_PageInfo[] arg0 = ToLua.CheckStructArray<TMPro.TMP_PageInfo>(L, 2);
  658. obj.pageInfo = arg0;
  659. return 0;
  660. }
  661. catch(Exception e)
  662. {
  663. return LuaDLL.toluaL_exception(L, e, o, "attempt to index pageInfo on a nil value");
  664. }
  665. }
  666. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  667. static int set_meshInfo(IntPtr L)
  668. {
  669. object o = null;
  670. try
  671. {
  672. o = ToLua.ToObject(L, 1);
  673. TMPro.TMP_TextInfo obj = (TMPro.TMP_TextInfo)o;
  674. TMPro.TMP_MeshInfo[] arg0 = ToLua.CheckStructArray<TMPro.TMP_MeshInfo>(L, 2);
  675. obj.meshInfo = arg0;
  676. return 0;
  677. }
  678. catch(Exception e)
  679. {
  680. return LuaDLL.toluaL_exception(L, e, o, "attempt to index meshInfo on a nil value");
  681. }
  682. }
  683. }