static int _m_AddView_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 1 && translator.Assignable <LuaMVC.IBaseView>(L, 1)) { LuaMVC.IBaseView view = (LuaMVC.IBaseView)translator.GetObject(L, 1, typeof(LuaMVC.IBaseView)); LuaMVC.ViewMaster.AddView(view); return(0); } if (__gen_param_count == 1 && translator.Assignable <LuaMVC.IBaseView[]>(L, 1)) { LuaMVC.IBaseView[] views = (LuaMVC.IBaseView[])translator.GetObject(L, 1, typeof(LuaMVC.IBaseView[])); LuaMVC.ViewMaster.AddView(views); return(0); } if (__gen_param_count == 1 && translator.Assignable <LuaMVC.ILuaBaseView>(L, 1)) { LuaMVC.ILuaBaseView view = (LuaMVC.ILuaBaseView)translator.GetObject(L, 1, typeof(LuaMVC.ILuaBaseView)); LuaMVC.ViewMaster.AddView(view); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to LuaMVC.ViewMaster.AddView!")); }
static int _m_GetView_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string viewName = LuaAPI.lua_tostring(L, 1); LuaMVC.IBaseView __cl_gen_ret = LuaMVC.ViewMaster.GetView(viewName); translator.PushAny(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }