UILocalizeTextureWrap.cs 2.3 KB

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