源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

548 lines
14 KiB

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