源战役客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

526 行
12 KiB

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