Wenting_Lebian_LeBianSDKWrap.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. ////this source code was auto-generated by tolua#, do not modify it
  2. //using System;
  3. //using LuaInterface;
  4. //public class Wenting_Lebian_LeBianSDKWrap
  5. //{
  6. // public static void Register(LuaState L)
  7. // {
  8. // L.BeginClass(typeof(Wenting.Lebian.LeBianSDK), typeof(UnityEngine.MonoBehaviour));
  9. // L.RegFunction("QueryUpdate", QueryUpdate);
  10. // L.RegFunction("AfterUpdate", AfterUpdate);
  11. // L.RegFunction("GetClientChId", GetClientChId);
  12. // L.RegFunction("GetResVerCode", GetResVerCode);
  13. // L.RegFunction("__eq", op_Equality);
  14. // L.RegFunction("__tostring", ToLua.op_ToString);
  15. // L.RegVar("instance", get_instance, null);
  16. // L.RegVar("queryUpdateCallback", get_queryUpdateCallback, set_queryUpdateCallback);
  17. // L.EndClass();
  18. // }
  19. // [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  20. // static int QueryUpdate(IntPtr L)
  21. // {
  22. // try
  23. // {
  24. // ToLua.CheckArgsCount(L, 1);
  25. // Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
  26. // obj.QueryUpdate();
  27. // return 0;
  28. // }
  29. // catch (Exception e)
  30. // {
  31. // return LuaDLL.toluaL_exception(L, e);
  32. // }
  33. // }
  34. // [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  35. // static int AfterUpdate(IntPtr L)
  36. // {
  37. // try
  38. // {
  39. // ToLua.CheckArgsCount(L, 1);
  40. // Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
  41. // bool o = obj.AfterUpdate();
  42. // LuaDLL.lua_pushboolean(L, o);
  43. // return 1;
  44. // }
  45. // catch (Exception e)
  46. // {
  47. // return LuaDLL.toluaL_exception(L, e);
  48. // }
  49. // }
  50. // [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  51. // static int GetClientChId(IntPtr L)
  52. // {
  53. // try
  54. // {
  55. // ToLua.CheckArgsCount(L, 1);
  56. // Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
  57. // string o = obj.GetClientChId();
  58. // LuaDLL.lua_pushstring(L, o);
  59. // return 1;
  60. // }
  61. // catch (Exception e)
  62. // {
  63. // return LuaDLL.toluaL_exception(L, e);
  64. // }
  65. // }
  66. // [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  67. // static int GetResVerCode(IntPtr L)
  68. // {
  69. // try
  70. // {
  71. // ToLua.CheckArgsCount(L, 1);
  72. // Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
  73. // int o = obj.GetResVerCode();
  74. // LuaDLL.lua_pushinteger(L, o);
  75. // return 1;
  76. // }
  77. // catch (Exception e)
  78. // {
  79. // return LuaDLL.toluaL_exception(L, e);
  80. // }
  81. // }
  82. // [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  83. // static int op_Equality(IntPtr L)
  84. // {
  85. // try
  86. // {
  87. // ToLua.CheckArgsCount(L, 2);
  88. // UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  89. // UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  90. // bool o = arg0 == arg1;
  91. // LuaDLL.lua_pushboolean(L, o);
  92. // return 1;
  93. // }
  94. // catch (Exception e)
  95. // {
  96. // return LuaDLL.toluaL_exception(L, e);
  97. // }
  98. // }
  99. // [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  100. // static int get_instance(IntPtr L)
  101. // {
  102. // try
  103. // {
  104. // ToLua.Push(L, Wenting.Lebian.LeBianSDK.instance);
  105. // return 1;
  106. // }
  107. // catch (Exception e)
  108. // {
  109. // return LuaDLL.toluaL_exception(L, e);
  110. // }
  111. // }
  112. // [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  113. // static int get_queryUpdateCallback(IntPtr L)
  114. // {
  115. // ToLua.Push(L, new EventObject(typeof(System.Action<Wenting.Lebian.QueryUpdateErrorCode>)));
  116. // return 1;
  117. // }
  118. // [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  119. // static int set_queryUpdateCallback(IntPtr L)
  120. // {
  121. // try
  122. // {
  123. // Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject(L, 1, typeof(Wenting.Lebian.LeBianSDK));
  124. // EventObject arg0 = null;
  125. // if (LuaDLL.lua_isuserdata(L, 2) != 0)
  126. // {
  127. // arg0 = (EventObject)ToLua.ToObject(L, 2);
  128. // }
  129. // else
  130. // {
  131. // return LuaDLL.luaL_throw(L, "The event 'Wenting.Lebian.LeBianSDK.queryUpdateCallback' can only appear on the left hand side of += or -= when used outside of the type 'Wenting.Lebian.LeBianSDK'");
  132. // }
  133. // if (arg0.op == EventOp.Add)
  134. // {
  135. // System.Action<Wenting.Lebian.QueryUpdateErrorCode> ev = (System.Action<Wenting.Lebian.QueryUpdateErrorCode>)arg0.func;
  136. // obj.queryUpdateCallback += ev;
  137. // }
  138. // else if (arg0.op == EventOp.Sub)
  139. // {
  140. // System.Action<Wenting.Lebian.QueryUpdateErrorCode> ev = (System.Action<Wenting.Lebian.QueryUpdateErrorCode>)arg0.func;
  141. // obj.queryUpdateCallback -= ev;
  142. // }
  143. // return 0;
  144. // }
  145. // catch (Exception e)
  146. // {
  147. // return LuaDLL.toluaL_exception(L, e);
  148. // }
  149. // }
  150. //}