static int _m_TryGet(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ConfigComponent gen_to_be_invoked = (DCET.Model.ConfigComponent)translator.FastGetCSObj(L, 1); { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); int _id = LuaAPI.xlua_tointeger(L, 3); DCET.Model.IConfig gen_ret = gen_to_be_invoked.TryGet(_type, _id); translator.PushAny(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_Id(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.IConfig gen_to_be_invoked = (DCET.Model.IConfig)translator.FastGetCSObj(L, 1); gen_to_be_invoked.Id = LuaAPI.lua_toint64(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _m_GetOne(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.ACategory gen_to_be_invoked = (DCET.Model.ACategory)translator.FastGetCSObj(L, 1); { DCET.Model.IConfig gen_ret = gen_to_be_invoked.GetOne( ); translator.PushAny(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }