TMPro_TMP_LinkInfoWrap.cs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class TMPro_TMP_LinkInfoWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(TMPro.TMP_LinkInfo), null);
  9. L.RegFunction("GetLinkText", GetLinkText);
  10. L.RegFunction("GetLinkID", GetLinkID);
  11. L.RegFunction("New", _CreateTMPro_TMP_LinkInfo);
  12. L.RegFunction("__tostring", ToLua.op_ToString);
  13. L.RegVar("textComponent", get_textComponent, set_textComponent);
  14. L.RegVar("hashCode", get_hashCode, set_hashCode);
  15. L.RegVar("linkIdFirstCharacterIndex", get_linkIdFirstCharacterIndex, set_linkIdFirstCharacterIndex);
  16. L.RegVar("linkIdLength", get_linkIdLength, set_linkIdLength);
  17. L.RegVar("linkTextfirstCharacterIndex", get_linkTextfirstCharacterIndex, set_linkTextfirstCharacterIndex);
  18. L.RegVar("linkTextLength", get_linkTextLength, set_linkTextLength);
  19. L.EndClass();
  20. }
  21. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  22. static int _CreateTMPro_TMP_LinkInfo(IntPtr L)
  23. {
  24. TMPro.TMP_LinkInfo obj = new TMPro.TMP_LinkInfo();
  25. ToLua.PushValue(L, obj);
  26. return 1;
  27. }
  28. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  29. static int GetLinkText(IntPtr L)
  30. {
  31. try
  32. {
  33. ToLua.CheckArgsCount(L, 1);
  34. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)ToLua.CheckObject(L, 1, typeof(TMPro.TMP_LinkInfo));
  35. string o = obj.GetLinkText();
  36. LuaDLL.lua_pushstring(L, o);
  37. ToLua.SetBack(L, 1, obj);
  38. return 1;
  39. }
  40. catch (Exception e)
  41. {
  42. return LuaDLL.toluaL_exception(L, e);
  43. }
  44. }
  45. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  46. static int GetLinkID(IntPtr L)
  47. {
  48. try
  49. {
  50. ToLua.CheckArgsCount(L, 1);
  51. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)ToLua.CheckObject(L, 1, typeof(TMPro.TMP_LinkInfo));
  52. string o = obj.GetLinkID();
  53. LuaDLL.lua_pushstring(L, o);
  54. ToLua.SetBack(L, 1, obj);
  55. return 1;
  56. }
  57. catch (Exception e)
  58. {
  59. return LuaDLL.toluaL_exception(L, e);
  60. }
  61. }
  62. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  63. static int get_textComponent(IntPtr L)
  64. {
  65. object o = null;
  66. try
  67. {
  68. o = ToLua.ToObject(L, 1);
  69. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  70. TMPro.TMP_Text ret = obj.textComponent;
  71. ToLua.Push(L, ret);
  72. return 1;
  73. }
  74. catch(Exception e)
  75. {
  76. return LuaDLL.toluaL_exception(L, e, o, "attempt to index textComponent on a nil value");
  77. }
  78. }
  79. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  80. static int get_hashCode(IntPtr L)
  81. {
  82. object o = null;
  83. try
  84. {
  85. o = ToLua.ToObject(L, 1);
  86. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  87. int ret = obj.hashCode;
  88. LuaDLL.lua_pushinteger(L, ret);
  89. return 1;
  90. }
  91. catch(Exception e)
  92. {
  93. return LuaDLL.toluaL_exception(L, e, o, "attempt to index hashCode on a nil value");
  94. }
  95. }
  96. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  97. static int get_linkIdFirstCharacterIndex(IntPtr L)
  98. {
  99. object o = null;
  100. try
  101. {
  102. o = ToLua.ToObject(L, 1);
  103. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  104. int ret = obj.linkIdFirstCharacterIndex;
  105. LuaDLL.lua_pushinteger(L, ret);
  106. return 1;
  107. }
  108. catch(Exception e)
  109. {
  110. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkIdFirstCharacterIndex on a nil value");
  111. }
  112. }
  113. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  114. static int get_linkIdLength(IntPtr L)
  115. {
  116. object o = null;
  117. try
  118. {
  119. o = ToLua.ToObject(L, 1);
  120. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  121. int ret = obj.linkIdLength;
  122. LuaDLL.lua_pushinteger(L, ret);
  123. return 1;
  124. }
  125. catch(Exception e)
  126. {
  127. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkIdLength on a nil value");
  128. }
  129. }
  130. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  131. static int get_linkTextfirstCharacterIndex(IntPtr L)
  132. {
  133. object o = null;
  134. try
  135. {
  136. o = ToLua.ToObject(L, 1);
  137. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  138. int ret = obj.linkTextfirstCharacterIndex;
  139. LuaDLL.lua_pushinteger(L, ret);
  140. return 1;
  141. }
  142. catch(Exception e)
  143. {
  144. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkTextfirstCharacterIndex on a nil value");
  145. }
  146. }
  147. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  148. static int get_linkTextLength(IntPtr L)
  149. {
  150. object o = null;
  151. try
  152. {
  153. o = ToLua.ToObject(L, 1);
  154. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  155. int ret = obj.linkTextLength;
  156. LuaDLL.lua_pushinteger(L, ret);
  157. return 1;
  158. }
  159. catch(Exception e)
  160. {
  161. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkTextLength on a nil value");
  162. }
  163. }
  164. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  165. static int set_textComponent(IntPtr L)
  166. {
  167. object o = null;
  168. try
  169. {
  170. o = ToLua.ToObject(L, 1);
  171. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  172. TMPro.TMP_Text arg0 = (TMPro.TMP_Text)ToLua.CheckObject<TMPro.TMP_Text>(L, 2);
  173. obj.textComponent = arg0;
  174. ToLua.SetBack(L, 1, obj);
  175. return 0;
  176. }
  177. catch(Exception e)
  178. {
  179. return LuaDLL.toluaL_exception(L, e, o, "attempt to index textComponent on a nil value");
  180. }
  181. }
  182. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  183. static int set_hashCode(IntPtr L)
  184. {
  185. object o = null;
  186. try
  187. {
  188. o = ToLua.ToObject(L, 1);
  189. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  190. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  191. obj.hashCode = arg0;
  192. ToLua.SetBack(L, 1, obj);
  193. return 0;
  194. }
  195. catch(Exception e)
  196. {
  197. return LuaDLL.toluaL_exception(L, e, o, "attempt to index hashCode on a nil value");
  198. }
  199. }
  200. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  201. static int set_linkIdFirstCharacterIndex(IntPtr L)
  202. {
  203. object o = null;
  204. try
  205. {
  206. o = ToLua.ToObject(L, 1);
  207. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  208. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  209. obj.linkIdFirstCharacterIndex = arg0;
  210. ToLua.SetBack(L, 1, obj);
  211. return 0;
  212. }
  213. catch(Exception e)
  214. {
  215. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkIdFirstCharacterIndex on a nil value");
  216. }
  217. }
  218. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  219. static int set_linkIdLength(IntPtr L)
  220. {
  221. object o = null;
  222. try
  223. {
  224. o = ToLua.ToObject(L, 1);
  225. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  226. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  227. obj.linkIdLength = arg0;
  228. ToLua.SetBack(L, 1, obj);
  229. return 0;
  230. }
  231. catch(Exception e)
  232. {
  233. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkIdLength on a nil value");
  234. }
  235. }
  236. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  237. static int set_linkTextfirstCharacterIndex(IntPtr L)
  238. {
  239. object o = null;
  240. try
  241. {
  242. o = ToLua.ToObject(L, 1);
  243. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  244. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  245. obj.linkTextfirstCharacterIndex = arg0;
  246. ToLua.SetBack(L, 1, obj);
  247. return 0;
  248. }
  249. catch(Exception e)
  250. {
  251. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkTextfirstCharacterIndex on a nil value");
  252. }
  253. }
  254. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  255. static int set_linkTextLength(IntPtr L)
  256. {
  257. object o = null;
  258. try
  259. {
  260. o = ToLua.ToObject(L, 1);
  261. TMPro.TMP_LinkInfo obj = (TMPro.TMP_LinkInfo)o;
  262. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  263. obj.linkTextLength = arg0;
  264. ToLua.SetBack(L, 1, obj);
  265. return 0;
  266. }
  267. catch(Exception e)
  268. {
  269. return LuaDLL.toluaL_exception(L, e, o, "attempt to index linkTextLength on a nil value");
  270. }
  271. }
  272. }