static int _g_get_Score(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.Equip.IEquipAttribute __cl_gen_to_be_invoked = (xc.Equip.IEquipAttribute)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.Score); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _m_GetAttr(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.Equip.EquipAttributes __cl_gen_to_be_invoked = (xc.Equip.EquipAttributes)translator.FastGetCSObj(L, 1); try { { int idx = LuaAPI.xlua_tointeger(L, 2); xc.Equip.IEquipAttribute __cl_gen_ret = __cl_gen_to_be_invoked.GetAttr(idx); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }