////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(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(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(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(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))); // 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 ev = (System.Action)arg0.func; // obj.queryUpdateCallback += ev; // } // else if (arg0.op == EventOp.Sub) // { // System.Action ev = (System.Action)arg0.func; // obj.queryUpdateCallback -= ev; // } // return 0; // } // catch (Exception e) // { // return LuaDLL.toluaL_exception(L, e); // } // } //}