static int _m_LuaCloseForm_xlua_st_(RealStatePtr L) { try { { string _uiFormId = LuaAPI.lua_tostring(L, 1); LuaCallStatic.LuaCloseForm(_uiFormId); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { LuaCallStatic gen_ret = new LuaCallStatic(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LuaCallStatic constructor!")); }
static int _m_RemoveEvent_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { int _eventId = LuaAPI.xlua_tointeger(L, 1); System.EventHandler <GameFramework.Event.GameEventArgs> _onEventHandler = translator.GetDelegate <System.EventHandler <GameFramework.Event.GameEventArgs> >(L, 2); LuaCallStatic.RemoveEvent(_eventId, _onEventHandler); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_FireEvent_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { int _eventId = LuaAPI.xlua_tointeger(L, 1); string _sender = LuaAPI.lua_tostring(L, 2); object[] _param = (object[])translator.GetObject(L, 3, typeof(object[])); LuaCallStatic.FireEvent(_eventId, _sender, _param); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_RemoveButtonClick_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <UnityEngine.GameObject>(L, 1) && translator.Assignable <UIEventListener.VoidDelegate>(L, 2)) { UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); UIEventListener.VoidDelegate _onBtnClick = translator.GetDelegate <UIEventListener.VoidDelegate>(L, 2); LuaCallStatic.RemoveButtonClick(_go, _onBtnClick); return(0); } if (gen_param_count == 2 && translator.Assignable <UnityEngine.GameObject>(L, 1) && translator.Assignable <UnityEngine.Events.UnityAction>(L, 2)) { UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); UnityEngine.Events.UnityAction _onBtnClick = translator.GetDelegate <UnityEngine.Events.UnityAction>(L, 2); LuaCallStatic.RemoveButtonClick(_go, _onBtnClick); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LuaCallStatic.RemoveButtonClick!")); }
static int _m_LuaOpenForm_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 2)) { string _uiFormId = LuaAPI.lua_tostring(L, 1); object _userData = translator.GetObject(L, 2, typeof(object)); LuaCallStatic.LuaOpenForm(_uiFormId, _userData); return(0); } if (gen_param_count == 1 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) { string _uiFormId = LuaAPI.lua_tostring(L, 1); LuaCallStatic.LuaOpenForm(_uiFormId); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LuaCallStatic.LuaOpenForm!")); }