| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(StoreModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 58, 27, 10); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 59, 27, 10); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshBuyShopLimitModel", _m_RefreshBuyShopLimitModel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBuyShopLimit", _m_GetBuyShopLimit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRuneSource", _m_SetRuneSource); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShopItemlistByIndex", _m_GetShopItemlistByIndex); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetShopItemInfo", _m_TryGetShopItemInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshTCBPlayerData", _m_RefreshTCBPlayerData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTCBPlayerData", _m_GetTCBPlayerData); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetShopItemlistByIndex(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | StoreModel gen_to_be_invoked = (StoreModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | TableConfig.StoreConfig _storeConfig = (TableConfig.StoreConfig)translator.GetObject(L, 2, typeof(TableConfig.StoreConfig)); |
| | | |
| | | System.Collections.Generic.List<ShopItemInfo> gen_ret = gen_to_be_invoked.GetShopItemlistByIndex( _storeConfig ); |
| | | 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_TryGetShopItemInfo(RealStatePtr L) |
| | | { |
| | | try { |