| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ItemTipsModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 44, 40, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 45, 40, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetFightPowerByItemId", _m_TryGetFightPowerByItemId); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPeerlessEquip", _m_IsPeerlessEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEquipFightPower", _m_GetEquipFightPower); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShareNumItemDes", _m_GetShareNumItemDes); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "equipLegendAttrTypeDict", _g_get_equipLegendAttrTypeDict); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetShareNumItemDes(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ItemTipsModel gen_to_be_invoked = (Snxxz.UI.ItemTipsModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | string gen_ret = gen_to_be_invoked.GetShareNumItemDes( _itemId ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |