|
|
@@ -1,163 +1,163 @@
|
|
|
-//this source code was auto-generated by tolua#, do not modify it
|
|
|
-using System;
|
|
|
-using LuaInterface;
|
|
|
+////this source code was auto-generated by tolua#, do not modify it
|
|
|
+//using System;
|
|
|
+//using LuaInterface;
|
|
|
|
|
|
-public class Wenting_Lebian_LeBianSDKWrap
|
|
|
-{
|
|
|
- public static void Register(LuaState L)
|
|
|
- {
|
|
|
- L.BeginClass(typeof(Wenting.Lebian.LeBianSDK), typeof(UnityEngine.MonoBehaviour));
|
|
|
- L.RegFunction("QueryUpdate", QueryUpdate);
|
|
|
- L.RegFunction("AfterUpdate", AfterUpdate);
|
|
|
- L.RegFunction("GetClientChId", GetClientChId);
|
|
|
- L.RegFunction("GetResVerCode", GetResVerCode);
|
|
|
- L.RegFunction("__eq", op_Equality);
|
|
|
- L.RegFunction("__tostring", ToLua.op_ToString);
|
|
|
- L.RegVar("instance", get_instance, null);
|
|
|
- L.RegVar("queryUpdateCallback", get_queryUpdateCallback, set_queryUpdateCallback);
|
|
|
- L.EndClass();
|
|
|
- }
|
|
|
+//public class Wenting_Lebian_LeBianSDKWrap
|
|
|
+//{
|
|
|
+// public static void Register(LuaState L)
|
|
|
+// {
|
|
|
+// L.BeginClass(typeof(Wenting.Lebian.LeBianSDK), typeof(UnityEngine.MonoBehaviour));
|
|
|
+// L.RegFunction("QueryUpdate", QueryUpdate);
|
|
|
+// L.RegFunction("AfterUpdate", AfterUpdate);
|
|
|
+// L.RegFunction("GetClientChId", GetClientChId);
|
|
|
+// L.RegFunction("GetResVerCode", GetResVerCode);
|
|
|
+// L.RegFunction("__eq", op_Equality);
|
|
|
+// L.RegFunction("__tostring", ToLua.op_ToString);
|
|
|
+// L.RegVar("instance", get_instance, null);
|
|
|
+// L.RegVar("queryUpdateCallback", get_queryUpdateCallback, set_queryUpdateCallback);
|
|
|
+// L.EndClass();
|
|
|
+// }
|
|
|
|
|
|
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
- static int QueryUpdate(IntPtr L)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- ToLua.CheckArgsCount(L, 1);
|
|
|
- Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
|
|
|
- obj.QueryUpdate();
|
|
|
- return 0;
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- return LuaDLL.toluaL_exception(L, e);
|
|
|
- }
|
|
|
- }
|
|
|
+// [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+// static int QueryUpdate(IntPtr L)
|
|
|
+// {
|
|
|
+// try
|
|
|
+// {
|
|
|
+// ToLua.CheckArgsCount(L, 1);
|
|
|
+// Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
|
|
|
+// obj.QueryUpdate();
|
|
|
+// return 0;
|
|
|
+// }
|
|
|
+// catch (Exception e)
|
|
|
+// {
|
|
|
+// return LuaDLL.toluaL_exception(L, e);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
- static int AfterUpdate(IntPtr L)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- ToLua.CheckArgsCount(L, 1);
|
|
|
- Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
|
|
|
- bool o = obj.AfterUpdate();
|
|
|
- LuaDLL.lua_pushboolean(L, o);
|
|
|
- return 1;
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- return LuaDLL.toluaL_exception(L, e);
|
|
|
- }
|
|
|
- }
|
|
|
+// [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+// static int AfterUpdate(IntPtr L)
|
|
|
+// {
|
|
|
+// try
|
|
|
+// {
|
|
|
+// ToLua.CheckArgsCount(L, 1);
|
|
|
+// Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
|
|
|
+// bool o = obj.AfterUpdate();
|
|
|
+// LuaDLL.lua_pushboolean(L, o);
|
|
|
+// return 1;
|
|
|
+// }
|
|
|
+// catch (Exception e)
|
|
|
+// {
|
|
|
+// return LuaDLL.toluaL_exception(L, e);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
- static int GetClientChId(IntPtr L)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- ToLua.CheckArgsCount(L, 1);
|
|
|
- Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
|
|
|
- string o = obj.GetClientChId();
|
|
|
- LuaDLL.lua_pushstring(L, o);
|
|
|
- return 1;
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- return LuaDLL.toluaL_exception(L, e);
|
|
|
- }
|
|
|
- }
|
|
|
+// [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+// static int GetClientChId(IntPtr L)
|
|
|
+// {
|
|
|
+// try
|
|
|
+// {
|
|
|
+// ToLua.CheckArgsCount(L, 1);
|
|
|
+// Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
|
|
|
+// string o = obj.GetClientChId();
|
|
|
+// LuaDLL.lua_pushstring(L, o);
|
|
|
+// return 1;
|
|
|
+// }
|
|
|
+// catch (Exception e)
|
|
|
+// {
|
|
|
+// return LuaDLL.toluaL_exception(L, e);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
- static int GetResVerCode(IntPtr L)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- ToLua.CheckArgsCount(L, 1);
|
|
|
- Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
|
|
|
- int o = obj.GetResVerCode();
|
|
|
- LuaDLL.lua_pushinteger(L, o);
|
|
|
- return 1;
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- return LuaDLL.toluaL_exception(L, e);
|
|
|
- }
|
|
|
- }
|
|
|
+// [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+// static int GetResVerCode(IntPtr L)
|
|
|
+// {
|
|
|
+// try
|
|
|
+// {
|
|
|
+// ToLua.CheckArgsCount(L, 1);
|
|
|
+// Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject<Wenting.Lebian.LeBianSDK>(L, 1);
|
|
|
+// int o = obj.GetResVerCode();
|
|
|
+// LuaDLL.lua_pushinteger(L, o);
|
|
|
+// return 1;
|
|
|
+// }
|
|
|
+// catch (Exception e)
|
|
|
+// {
|
|
|
+// return LuaDLL.toluaL_exception(L, e);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
- static int op_Equality(IntPtr L)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- ToLua.CheckArgsCount(L, 2);
|
|
|
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
|
|
|
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
|
|
|
- bool o = arg0 == arg1;
|
|
|
- LuaDLL.lua_pushboolean(L, o);
|
|
|
- return 1;
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- return LuaDLL.toluaL_exception(L, e);
|
|
|
- }
|
|
|
- }
|
|
|
+// [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+// static int op_Equality(IntPtr L)
|
|
|
+// {
|
|
|
+// try
|
|
|
+// {
|
|
|
+// ToLua.CheckArgsCount(L, 2);
|
|
|
+// UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
|
|
|
+// UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
|
|
|
+// bool o = arg0 == arg1;
|
|
|
+// LuaDLL.lua_pushboolean(L, o);
|
|
|
+// return 1;
|
|
|
+// }
|
|
|
+// catch (Exception e)
|
|
|
+// {
|
|
|
+// return LuaDLL.toluaL_exception(L, e);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
- static int get_instance(IntPtr L)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- ToLua.Push(L, Wenting.Lebian.LeBianSDK.instance);
|
|
|
- return 1;
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- return LuaDLL.toluaL_exception(L, e);
|
|
|
- }
|
|
|
- }
|
|
|
+// [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+// static int get_instance(IntPtr L)
|
|
|
+// {
|
|
|
+// try
|
|
|
+// {
|
|
|
+// ToLua.Push(L, Wenting.Lebian.LeBianSDK.instance);
|
|
|
+// return 1;
|
|
|
+// }
|
|
|
+// catch (Exception e)
|
|
|
+// {
|
|
|
+// return LuaDLL.toluaL_exception(L, e);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
- static int get_queryUpdateCallback(IntPtr L)
|
|
|
- {
|
|
|
- ToLua.Push(L, new EventObject(typeof(System.Action<Wenting.Lebian.QueryUpdateErrorCode>)));
|
|
|
- return 1;
|
|
|
- }
|
|
|
+// [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+// static int get_queryUpdateCallback(IntPtr L)
|
|
|
+// {
|
|
|
+// ToLua.Push(L, new EventObject(typeof(System.Action<Wenting.Lebian.QueryUpdateErrorCode>)));
|
|
|
+// return 1;
|
|
|
+// }
|
|
|
|
|
|
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
- static int set_queryUpdateCallback(IntPtr L)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject(L, 1, typeof(Wenting.Lebian.LeBianSDK));
|
|
|
- EventObject arg0 = null;
|
|
|
+// [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
|
+// static int set_queryUpdateCallback(IntPtr L)
|
|
|
+// {
|
|
|
+// try
|
|
|
+// {
|
|
|
+// Wenting.Lebian.LeBianSDK obj = (Wenting.Lebian.LeBianSDK)ToLua.CheckObject(L, 1, typeof(Wenting.Lebian.LeBianSDK));
|
|
|
+// EventObject arg0 = null;
|
|
|
|
|
|
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
|
|
|
- {
|
|
|
- arg0 = (EventObject)ToLua.ToObject(L, 2);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- 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'");
|
|
|
- }
|
|
|
+// if (LuaDLL.lua_isuserdata(L, 2) != 0)
|
|
|
+// {
|
|
|
+// arg0 = (EventObject)ToLua.ToObject(L, 2);
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+// 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'");
|
|
|
+// }
|
|
|
|
|
|
- if (arg0.op == EventOp.Add)
|
|
|
- {
|
|
|
- System.Action<Wenting.Lebian.QueryUpdateErrorCode> ev = (System.Action<Wenting.Lebian.QueryUpdateErrorCode>)arg0.func;
|
|
|
- obj.queryUpdateCallback += ev;
|
|
|
- }
|
|
|
- else if (arg0.op == EventOp.Sub)
|
|
|
- {
|
|
|
- System.Action<Wenting.Lebian.QueryUpdateErrorCode> ev = (System.Action<Wenting.Lebian.QueryUpdateErrorCode>)arg0.func;
|
|
|
- obj.queryUpdateCallback -= ev;
|
|
|
- }
|
|
|
+// if (arg0.op == EventOp.Add)
|
|
|
+// {
|
|
|
+// System.Action<Wenting.Lebian.QueryUpdateErrorCode> ev = (System.Action<Wenting.Lebian.QueryUpdateErrorCode>)arg0.func;
|
|
|
+// obj.queryUpdateCallback += ev;
|
|
|
+// }
|
|
|
+// else if (arg0.op == EventOp.Sub)
|
|
|
+// {
|
|
|
+// System.Action<Wenting.Lebian.QueryUpdateErrorCode> ev = (System.Action<Wenting.Lebian.QueryUpdateErrorCode>)arg0.func;
|
|
|
+// obj.queryUpdateCallback -= ev;
|
|
|
+// }
|
|
|
|
|
|
- return 0;
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- return LuaDLL.toluaL_exception(L, e);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+// return 0;
|
|
|
+// }
|
|
|
+// catch (Exception e)
|
|
|
+// {
|
|
|
+// return LuaDLL.toluaL_exception(L, e);
|
|
|
+// }
|
|
|
+// }
|
|
|
+//}
|
|
|
|