| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.PlayerPackModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 96, 38, 8); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 98, 39, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSinglePackModel", _m_GetSinglePackModel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemModelByGUID", _m_GetItemModelByGUID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemModelByIndex", _m_GetItemModelByIndex); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemModelsById", _m_GetItemModelsById); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemGUIDByID", _m_GetItemGUIDByID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemCountByID", _m_GetItemCountByID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckBagIsPutNewItem", _m_CheckBagIsPutNewItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetReaminGridCount", _m_GetReaminGridCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetShareNumItem", _m_TryGetShareNumItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDayUseCntByID", _m_GetDayUseCntByID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSumUseCntByID", _m_GetSumUseCntByID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWashAttrPointModel", _m_SetWashAttrPointModel); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaxDepotGridCnt", _g_get_MaxDepotGridCnt); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "InitDepotGridCnt", _g_get_InitDepotGridCnt); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalSavePlaceArray", _g_get_LocalSavePlaceArray); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ShareUseCntItemDict", _g_get_ShareUseCntItemDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlayBetterEquipEffect", _g_get_isPlayBetterEquipEffect); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "showDropItem", _g_get_showDropItem); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fairyRedPointLvlimt", _g_get_fairyRedPointLvlimt); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetItemModelsById(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.PlayerPackModel gen_to_be_invoked = (Snxxz.UI.PlayerPackModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | PackType _type;translator.Get(L, 2, out _type); |
| | | int _id = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | System.Collections.Generic.List<Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetItemModelsById( _type, _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetItemGUIDByID(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetShareNumItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.PlayerPackModel gen_to_be_invoked = (Snxxz.UI.PlayerPackModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.List<int> _idlist; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetShareNumItem( _itemId, out _idlist ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _idlist); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ShareUseCntItemDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.PlayerPackModel gen_to_be_invoked = (Snxxz.UI.PlayerPackModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ShareUseCntItemDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_isPlayBetterEquipEffect(RealStatePtr L) |
| | | { |
| | | try { |