UILocalizeTextureWrap.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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("key", get_key, set_key);
  15. L.EndClass();
  16. }
  17. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  18. static int Refresh(IntPtr L)
  19. {
  20. try
  21. {
  22. ToLua.CheckArgsCount(L, 1);
  23. UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject<UILocalizeTexture>(L, 1);
  24. obj.Refresh();
  25. return 0;
  26. }
  27. catch (Exception e)
  28. {
  29. return LuaDLL.toluaL_exception(L, e);
  30. }
  31. }
  32. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  33. static int SetKey(IntPtr L)
  34. {
  35. try
  36. {
  37. ToLua.CheckArgsCount(L, 2);
  38. UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject<UILocalizeTexture>(L, 1);
  39. string arg0 = ToLua.CheckString(L, 2);
  40. obj.SetKey(arg0);
  41. return 0;
  42. }
  43. catch (Exception e)
  44. {
  45. return LuaDLL.toluaL_exception(L, e);
  46. }
  47. }
  48. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  49. static int Dispose(IntPtr L)
  50. {
  51. try
  52. {
  53. ToLua.CheckArgsCount(L, 1);
  54. UILocalizeTexture obj = (UILocalizeTexture)ToLua.CheckObject<UILocalizeTexture>(L, 1);
  55. obj.Dispose();
  56. return 0;
  57. }
  58. catch (Exception e)
  59. {
  60. return LuaDLL.toluaL_exception(L, e);
  61. }
  62. }
  63. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  64. static int op_Equality(IntPtr L)
  65. {
  66. try
  67. {
  68. ToLua.CheckArgsCount(L, 2);
  69. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  70. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  71. bool o = arg0 == arg1;
  72. LuaDLL.lua_pushboolean(L, o);
  73. return 1;
  74. }
  75. catch (Exception e)
  76. {
  77. return LuaDLL.toluaL_exception(L, e);
  78. }
  79. }
  80. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  81. static int get_key(IntPtr L)
  82. {
  83. object o = null;
  84. try
  85. {
  86. o = ToLua.ToObject(L, 1);
  87. UILocalizeTexture obj = (UILocalizeTexture)o;
  88. string ret = obj.key;
  89. LuaDLL.lua_pushstring(L, ret);
  90. return 1;
  91. }
  92. catch(Exception e)
  93. {
  94. return LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value");
  95. }
  96. }
  97. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  98. static int set_key(IntPtr L)
  99. {
  100. object o = null;
  101. try
  102. {
  103. o = ToLua.ToObject(L, 1);
  104. UILocalizeTexture obj = (UILocalizeTexture)o;
  105. string arg0 = ToLua.CheckString(L, 2);
  106. obj.key = arg0;
  107. return 0;
  108. }
  109. catch(Exception e)
  110. {
  111. return LuaDLL.toluaL_exception(L, e, o, "attempt to index key on a nil value");
  112. }
  113. }
  114. }