static int _g_get_LuaClass(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPanelBase gen_to_be_invoked = (LuaPanelBase)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.LuaClass); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new LuaPanelBase(); 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 LuaPanelBase constructor!")); }
static int _m_OnUnload(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPanelBase gen_to_be_invoked = (LuaPanelBase)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.OnUnload( ); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_OnLoad(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); LuaPanelBase gen_to_be_invoked = (LuaPanelBase)translator.FastGetCSObj(L, 1); { object[] _args = translator.GetParams <object>(L, 2); gen_to_be_invoked.OnLoad(_args); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public LuaTable AttachSimplePanel(string ui_res, string lua_cls, bool show, LuaTable param) { LuaPanelBase ins = AttachPanel <LuaPanelBase>(ui_res, show, lua_cls, param); return(ins.LuaClass); }
public LuaTable LoadSimplePanel(string ui_res, string lua_cls, LuaTable param) { LuaPanelBase ins = LoadPanelShow <LuaPanelBase>(ui_res, lua_cls, param); return(ins.LuaClass); }