UILocalizeScriptWrap.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UILocalizeScriptWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UILocalizeScript), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("OnChangeLang", OnChangeLang);
  10. L.RegFunction("SetContent", SetContent);
  11. L.RegFunction("CleanContent", CleanContent);
  12. L.RegFunction("SetValues", SetValues);
  13. L.RegFunction("SetContentAndValues", SetContentAndValues);
  14. L.RegFunction("SetContentWithColor", SetContentWithColor);
  15. L.RegFunction("SetValuesWithColor", SetValuesWithColor);
  16. L.RegFunction("SetContentAndValuesWithColor", SetContentAndValuesWithColor);
  17. L.RegFunction("__eq", op_Equality);
  18. L.RegFunction("__tostring", ToLua.op_ToString);
  19. L.RegVar("m_key", get_m_key, set_m_key);
  20. L.EndClass();
  21. }
  22. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  23. static int OnChangeLang(IntPtr L)
  24. {
  25. try
  26. {
  27. ToLua.CheckArgsCount(L, 1);
  28. UILocalizeScript obj = (UILocalizeScript)ToLua.CheckObject<UILocalizeScript>(L, 1);
  29. obj.OnChangeLang();
  30. return 0;
  31. }
  32. catch (Exception e)
  33. {
  34. return LuaDLL.toluaL_exception(L, e);
  35. }
  36. }
  37. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  38. static int SetContent(IntPtr L)
  39. {
  40. try
  41. {
  42. ToLua.CheckArgsCount(L, 2);
  43. UILocalizeScript obj = (UILocalizeScript)ToLua.CheckObject<UILocalizeScript>(L, 1);
  44. string arg0 = ToLua.CheckString(L, 2);
  45. obj.SetContent(arg0);
  46. return 0;
  47. }
  48. catch (Exception e)
  49. {
  50. return LuaDLL.toluaL_exception(L, e);
  51. }
  52. }
  53. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  54. static int CleanContent(IntPtr L)
  55. {
  56. try
  57. {
  58. ToLua.CheckArgsCount(L, 1);
  59. UILocalizeScript obj = (UILocalizeScript)ToLua.CheckObject<UILocalizeScript>(L, 1);
  60. obj.CleanContent();
  61. return 0;
  62. }
  63. catch (Exception e)
  64. {
  65. return LuaDLL.toluaL_exception(L, e);
  66. }
  67. }
  68. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  69. static int SetValues(IntPtr L)
  70. {
  71. try
  72. {
  73. ToLua.CheckArgsCount(L, 2);
  74. UILocalizeScript obj = (UILocalizeScript)ToLua.CheckObject<UILocalizeScript>(L, 1);
  75. object[] arg0 = ToLua.CheckObjectArray(L, 2);
  76. obj.SetValues(arg0);
  77. return 0;
  78. }
  79. catch (Exception e)
  80. {
  81. return LuaDLL.toluaL_exception(L, e);
  82. }
  83. }
  84. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  85. static int SetContentAndValues(IntPtr L)
  86. {
  87. try
  88. {
  89. ToLua.CheckArgsCount(L, 3);
  90. UILocalizeScript obj = (UILocalizeScript)ToLua.CheckObject<UILocalizeScript>(L, 1);
  91. string arg0 = ToLua.CheckString(L, 2);
  92. object[] arg1 = ToLua.CheckObjectArray(L, 3);
  93. obj.SetContentAndValues(arg0, arg1);
  94. return 0;
  95. }
  96. catch (Exception e)
  97. {
  98. return LuaDLL.toluaL_exception(L, e);
  99. }
  100. }
  101. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  102. static int SetContentWithColor(IntPtr L)
  103. {
  104. try
  105. {
  106. ToLua.CheckArgsCount(L, 3);
  107. UILocalizeScript obj = (UILocalizeScript)ToLua.CheckObject<UILocalizeScript>(L, 1);
  108. string arg0 = ToLua.CheckString(L, 2);
  109. string arg1 = ToLua.CheckString(L, 3);
  110. obj.SetContentWithColor(arg0, arg1);
  111. return 0;
  112. }
  113. catch (Exception e)
  114. {
  115. return LuaDLL.toluaL_exception(L, e);
  116. }
  117. }
  118. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  119. static int SetValuesWithColor(IntPtr L)
  120. {
  121. try
  122. {
  123. ToLua.CheckArgsCount(L, 3);
  124. UILocalizeScript obj = (UILocalizeScript)ToLua.CheckObject<UILocalizeScript>(L, 1);
  125. object[] arg0 = ToLua.CheckObjectArray(L, 2);
  126. string arg1 = ToLua.CheckString(L, 3);
  127. obj.SetValuesWithColor(arg0, arg1);
  128. return 0;
  129. }
  130. catch (Exception e)
  131. {
  132. return LuaDLL.toluaL_exception(L, e);
  133. }
  134. }
  135. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  136. static int SetContentAndValuesWithColor(IntPtr L)
  137. {
  138. try
  139. {
  140. ToLua.CheckArgsCount(L, 4);
  141. UILocalizeScript obj = (UILocalizeScript)ToLua.CheckObject<UILocalizeScript>(L, 1);
  142. string arg0 = ToLua.CheckString(L, 2);
  143. object[] arg1 = ToLua.CheckObjectArray(L, 3);
  144. string arg2 = ToLua.CheckString(L, 4);
  145. obj.SetContentAndValuesWithColor(arg0, arg1, arg2);
  146. return 0;
  147. }
  148. catch (Exception e)
  149. {
  150. return LuaDLL.toluaL_exception(L, e);
  151. }
  152. }
  153. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  154. static int op_Equality(IntPtr L)
  155. {
  156. try
  157. {
  158. ToLua.CheckArgsCount(L, 2);
  159. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  160. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  161. bool o = arg0 == arg1;
  162. LuaDLL.lua_pushboolean(L, o);
  163. return 1;
  164. }
  165. catch (Exception e)
  166. {
  167. return LuaDLL.toluaL_exception(L, e);
  168. }
  169. }
  170. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  171. static int get_m_key(IntPtr L)
  172. {
  173. object o = null;
  174. try
  175. {
  176. o = ToLua.ToObject(L, 1);
  177. UILocalizeScript obj = (UILocalizeScript)o;
  178. string ret = obj.m_key;
  179. LuaDLL.lua_pushstring(L, ret);
  180. return 1;
  181. }
  182. catch(Exception e)
  183. {
  184. return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_key on a nil value");
  185. }
  186. }
  187. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  188. static int set_m_key(IntPtr L)
  189. {
  190. object o = null;
  191. try
  192. {
  193. o = ToLua.ToObject(L, 1);
  194. UILocalizeScript obj = (UILocalizeScript)o;
  195. string arg0 = ToLua.CheckString(L, 2);
  196. obj.m_key = arg0;
  197. return 0;
  198. }
  199. catch(Exception e)
  200. {
  201. return LuaDLL.toluaL_exception(L, e, o, "attempt to index m_key on a nil value");
  202. }
  203. }
  204. }