| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- ////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();
- // }
- // [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 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 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_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;
- // 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;
- // }
- // return 0;
- // }
- // catch (Exception e)
- // {
- // return LuaDLL.toluaL_exception(L, e);
- // }
- // }
- //}
|