UILocalizeTextureWrap.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UILocalizeTextureWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UILocalizeTexture), typeof(UnityEngine.MonoBehaviour));
  9. L.RegFunction("Refresh", Refresh);
  10. L.RegFunction("SetKey", SetKey);
  11. L.RegFunction("Dispose", Dispose);
  12. L.RegFunction("__eq", op_Equality);
  13. L.RegFunction("__tostring", ToLua.op_ToString);
  14. L.RegVar("lgKey", get_lgKey, set_lgKey);
  15. L.RegVar("key", get_key, set_key);
  16. L.EndClass();
  17. }
  18. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  19. static int Refresh(IntPtr L)
  20. {
  21. try
  22. {
  23. ToLua.CheckArgsCount(L, 1);
  24. UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject<UILocalizeTexture>(L, 1);
  25. obj.Refresh();
  26. return 0;
  27. }
  28. catch (Exception e)
  29. {
  30. return LuaDLL.toluaL_exception(L, e);
  31. }
  32. }
  33. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  34. static int SetKey(IntPtr L)
  35. {
  36. try
  37. {
  38. ToLua.CheckArgsCount(L, 2);
  39. UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject<UILocalizeTexture>(L, 1);
  40. string arg0 = ToLua.CheckString(L, 2);
  41. obj.SetKey(arg0);
  42. return 0;
  43. }
  44. catch (Exception e)
  45. {
  46. return LuaDLL.toluaL_exception(L, e);
  47. }
  48. }
  49. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  50. static int Dispose(IntPtr L)
  51. {
  52. try
  53. {
  54. ToLua.CheckArgsCount(L, 1);
  55. UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject<UILocalizeTexture>(L, 1);
  56. obj.Dispose();
  57. return 0;
  58. }
  59. catch (Exception e)
  60. {
  61. return LuaDLL.toluaL_exception(L, e);
  62. }
  63. }
  64. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  65. static int op_Equality(IntPtr L)
  66. {
  67. try
  68. {
  69. ToLua.CheckArgsCount(L, 2);
  70. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  71. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  72. bool o = arg0 == arg1;
  73. LuaDLL.lua_pushboolean(L, o);
  74. return 1;
  75. }
  76. catch (Exception e)
  77. {
  78. return LuaDLL.toluaL_exception(L, e);
  79. }
  80. }
  81. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  82. static int get_lgKey(IntPtr L)
  83. {
  84. object o = null;
  85. try
  86. {
  87. o = ToLua.ToObject(L, 1);
  88. UILocalizeTexture obj = (UILocalizeTexture)o;
  89. string ret = obj.lgKey;
  90. LuaDLL.lua_pushstring(L, ret);
  91. return 1;
  92. }
  93. catch(Exception e)
  94. {
  95. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lgKey on a nil value");
  96. }
  97. }
  98. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  99. static int get_key(IntPtr L)
  100. {
  101. object o = null;
  102. try
  103. {
  104. o = ToLua.ToObject(L, 1);
  105. UILocalizeTexture obj = (UILocalizeTexture)o;
  106. string ret = obj.key;
  107. LuaDLL.lua_pushstring(L, ret);
  108. return 1;
  109. }
  110. catch(Exception e)
  111. {
  112. return LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value");
  113. }
  114. }
  115. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  116. static int set_lgKey(IntPtr L)
  117. {
  118. object o = null;
  119. try
  120. {
  121. o = ToLua.ToObject(L, 1);
  122. UILocalizeTexture obj = (UILocalizeTexture)o;
  123. string arg0 = ToLua.CheckString(L, 2);
  124. obj.lgKey = arg0;
  125. return 0;
  126. }
  127. catch(Exception e)
  128. {
  129. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lgKey on a nil value");
  130. }
  131. }
  132. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  133. static int set_key(IntPtr L)
  134. {
  135. object o = null;
  136. try
  137. {
  138. o = ToLua.ToObject(L, 1);
  139. UILocalizeTexture obj = (UILocalizeTexture)o;
  140. string arg0 = ToLua.CheckString(L, 2);
  141. obj.key = arg0;
  142. return 0;
  143. }
  144. catch(Exception e)
  145. {
  146. return LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value");
  147. }
  148. }
  149. }