static int _m_CallLuaFunc2Num(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaFramework.CSLuaBridge gen_to_be_invoked = (XLuaFramework.CSLuaBridge)translator.FastGetCSObj(L, 1); { int _funcID = LuaAPI.xlua_tointeger(L, 2); long _arge1 = LuaAPI.lua_toint64(L, 3); long _arge2 = LuaAPI.lua_toint64(L, 4); gen_to_be_invoked.CallLuaFunc2Num(_funcID, _arge1, _arge2); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetInstance_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { XLuaFramework.CSLuaBridge gen_ret = XLuaFramework.CSLuaBridge.GetInstance( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ClearDelegate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaFramework.CSLuaBridge gen_to_be_invoked = (XLuaFramework.CSLuaBridge)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ClearDelegate( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetLuaFunc(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaFramework.CSLuaBridge gen_to_be_invoked = (XLuaFramework.CSLuaBridge)translator.FastGetCSObj(L, 1); { int _funcID = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Events.UnityAction _func = translator.GetDelegate <UnityEngine.Events.UnityAction>(L, 3); gen_to_be_invoked.SetLuaFunc(_funcID, _func); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }