// Token: 0x060132C9 RID: 78537 RVA: 0x004E2CFC File Offset: 0x004E0EFC public void SetHeroSkinItemInfo(FixedStoreItem fixedStoreItem) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetHeroSkinItemInfoFixedStoreItem_hotfix != null) { this.m_SetHeroSkinItemInfoFixedStoreItem_hotfix.call(new object[] { this, fixedStoreItem }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataFixedStoreItemInfo configDataFixedStoreItemInfo = this.m_configDataLoader.GetConfigDataFixedStoreItemInfo(fixedStoreItem.Id); if (configDataFixedStoreItemInfo != null && configDataFixedStoreItemInfo.ItemType == GoodsType.GoodsType_HeroSkin) { this.m_storeItemConfig = configDataFixedStoreItemInfo; this.m_storeType = StoreType.StoreType_Static; ConfigDataHeroSkinInfo configDataHeroSkinInfo = this.m_configDataLoader.GetConfigDataHeroSkinInfo(this.m_storeItemConfig.ItemId); ConfigDataCharImageSkinResourceInfo configDataCharImageSkinResourceInfo = this.m_configDataLoader.GetConfigDataCharImageSkinResourceInfo(configDataHeroSkinInfo.CharImageSkinResource_ID); this.m_heroSkinIcon.sprite = AssetUtility.Instance.GetSprite(configDataCharImageSkinResourceInfo.Image); ConfigDataHeroInfo configDataHeroInfo = this.m_configDataLoader.GetConfigDataHeroInfo(configDataHeroSkinInfo.SpecifiedHero); this.m_heroName.text = configDataHeroInfo.Name; this.m_skinName.text = this.m_storeItemConfig.Name; this.m_priceText.text = this.m_storeItemConfig.NormalPrice.ToString(); this.SetItemState(); base.gameObject.SetActive(true); } }
// Token: 0x06013734 RID: 79668 RVA: 0x004F4BAC File Offset: 0x004F2DAC public void SetSoldierSkinItemInfo(FixedStoreItem soldierSkinItem) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSoldierSkinItemInfoFixedStoreItem_hotfix != null) { this.m_SetSoldierSkinItemInfoFixedStoreItem_hotfix.call(new object[] { this, soldierSkinItem }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataFixedStoreItemInfo configDataFixedStoreItemInfo = this.m_configDataLoader.GetConfigDataFixedStoreItemInfo(soldierSkinItem.Id); if (configDataFixedStoreItemInfo != null && configDataFixedStoreItemInfo.ItemType == GoodsType.GoodsType_SoldierSkin) { this.m_storeItemConfig = configDataFixedStoreItemInfo; this.m_storeType = StoreType.StoreType_Static; ConfigDataSoldierSkinInfo configDataSoldierSkinInfo = this.m_configDataLoader.GetConfigDataSoldierSkinInfo(this.m_storeItemConfig.ItemId); this.m_soldierName.text = this.m_storeItemConfig.Name; this.m_priceText.text = this.m_storeItemConfig.NormalPrice.ToString(); this.SetSoldierSpineAnim(configDataSoldierSkinInfo); this.SetItemState(); base.gameObject.SetActive(true); } }
// Token: 0x06006F6F RID: 28527 RVA: 0x001F2C18 File Offset: 0x001F0E18 public int CanBuyGoods(int storeId, int goodsId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CanBuyGoodsInt32Int32_hotfix != null) { return(Convert.ToInt32(this.m_CanBuyGoodsInt32Int32_hotfix.call(new object[] { this, storeId, goodsId2 }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; int goodsId = goodsId2; Dictionary <int, FixedStoreInfo> stores = this.m_configDataLoader.FixedStoreData.Stores; if (!stores.ContainsKey(storeId)) { return(-1300); } if (!stores[storeId].StoreItems.ContainsKey(goodsId)) { return(-1301); } FixedStoreItem item = null; FixedStore fixedStore = this.FindStoreById(storeId); if (fixedStore != null) { item = fixedStore.Items.Find((FixedStoreItem t) => t.Id == goodsId); } ConfigDataFixedStoreItemInfo itemConfig = this.m_configDataLoader.FixedStoreData.Stores[storeId].StoreItems[goodsId]; return(base.CanBuyFixedStoreItem(itemConfig, item)); }
public static int constructor(IntPtr l) { int result; try { FixedStoreItem o = new FixedStoreItem(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_NextFlushTime(IntPtr l) { int result; try { FixedStoreItem fixedStoreItem = (FixedStoreItem)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, fixedStoreItem.NextFlushTime); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x06006F70 RID: 28528 RVA: 0x001F2D50 File Offset: 0x001F0F50 public void BuyStoreItem(int storeId, int goodsId, long nextFlushTime, bool isReseted) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_BuyStoreItemInt32Int32Int64Boolean_hotfix != null) { this.m_BuyStoreItemInt32Int32Int64Boolean_hotfix.call(new object[] { this, storeId, goodsId2, nextFlushTime, isReseted }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; int goodsId = goodsId2; FixedStore fixedStore = this.m_fixedStoreDS.FindStore(storeId); if (fixedStore == null) { fixedStore = new FixedStore(); fixedStore.Id = storeId; this.m_fixedStoreDS.AddStore(fixedStore); } ConfigDataFixedStoreItemInfo configDataFixedStoreItemInfo = this.m_configDataLoader.FixedStoreData.Stores[storeId].StoreItems[goodsId]; FixedStoreItem fixedStoreItem = fixedStore.Items.Find((FixedStoreItem t) => t.Id == goodsId); if (fixedStoreItem == null) { fixedStoreItem = new FixedStoreItem(); fixedStoreItem.Id = goodsId; fixedStoreItem.IsFirstBuy = true; fixedStoreItem.BoughtCount = 0; fixedStore.Items.Add(fixedStoreItem); } int num = base.CaculateCurrencyCount(configDataFixedStoreItemInfo, fixedStoreItem.IsFirstBuy); this.m_basicInfo.AddCurrency(configDataFixedStoreItemInfo.CurrencyType, -num, GameFunctionType.GameFunctionType_None, null); fixedStoreItem.NextFlushTime = nextFlushTime; if (isReseted) { fixedStoreItem.BoughtCount = 0; } base.BuyStoreItem(storeId, fixedStoreItem, 1); }
public static int PBStoreItemToStoreItem_s(IntPtr l) { int result; try { ProFixedStoreItem pbStoreItem; LuaObject.checkType <ProFixedStoreItem>(l, 1, out pbStoreItem); FixedStoreItem o = FixedStoreItem.PBStoreItemToStoreItem(pbStoreItem); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int StoreItemsToPBStoreItems_s(IntPtr l) { int result; try { List <FixedStoreItem> storeItems; LuaObject.checkType <List <FixedStoreItem> >(l, 1, out storeItems); List <ProFixedStoreItem> o = FixedStoreItem.StoreItemsToPBStoreItems(storeItems); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_NextFlushTime(IntPtr l) { int result; try { FixedStoreItem fixedStoreItem = (FixedStoreItem)LuaObject.checkSelf(l); long nextFlushTime; LuaObject.checkType(l, 2, out nextFlushTime); fixedStoreItem.NextFlushTime = nextFlushTime; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_IsFirstBuy(IntPtr l) { int result; try { FixedStoreItem fixedStoreItem = (FixedStoreItem)LuaObject.checkSelf(l); bool isFirstBuy; LuaObject.checkType(l, 2, out isFirstBuy); fixedStoreItem.IsFirstBuy = isFirstBuy; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_BoughtCount(IntPtr l) { int result; try { FixedStoreItem fixedStoreItem = (FixedStoreItem)LuaObject.checkSelf(l); int boughtCount; LuaObject.checkType(l, 2, out boughtCount); fixedStoreItem.BoughtCount = boughtCount; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetStoreItem(IntPtr l) { int result; try { DataSectionFixedStore dataSectionFixedStore = (DataSectionFixedStore)LuaObject.checkSelf(l); FixedStore store; LuaObject.checkType <FixedStore>(l, 2, out store); int goodsId; LuaObject.checkType(l, 3, out goodsId); FixedStoreItem storeItem = dataSectionFixedStore.GetStoreItem(store, goodsId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, storeItem); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x06006F92 RID: 28562 RVA: 0x001F3340 File Offset: 0x001F1540 public void __callBase_BuyStoreItem(int storeId, FixedStoreItem storeItem, int count) { this.m_owner.__callBase_BuyStoreItem(storeId, storeItem, count); }
// Token: 0x06006F8E RID: 28558 RVA: 0x001F3300 File Offset: 0x001F1500 public int __callBase_CanBuyFixedStoreItem(ConfigDataFixedStoreItemInfo itemConfig, FixedStoreItem item) { return(this.m_owner.__callBase_CanBuyFixedStoreItem(itemConfig, item)); }
// Token: 0x06006F8B RID: 28555 RVA: 0x001F32D0 File Offset: 0x001F14D0 public bool __callBase_IsSoldOut(ConfigDataFixedStoreItemInfo itemConfig, FixedStoreItem item) { return(this.m_owner.__callBase_IsSoldOut(itemConfig, item)); }
// Token: 0x06006F81 RID: 28545 RVA: 0x001F300C File Offset: 0x001F120C private void __callBase_BuyStoreItem(int storeId, FixedStoreItem storeItem, int count) { base.BuyStoreItem(storeId, storeItem, count); }
// Token: 0x06006F7D RID: 28541 RVA: 0x001F2FDC File Offset: 0x001F11DC private int __callBase_CanBuyFixedStoreItem(ConfigDataFixedStoreItemInfo itemConfig, FixedStoreItem item) { return(base.CanBuyFixedStoreItem(itemConfig, item)); }
// Token: 0x06006F7A RID: 28538 RVA: 0x001F2FB8 File Offset: 0x001F11B8 private bool __callBase_IsSoldOut(ConfigDataFixedStoreItemInfo itemConfig, FixedStoreItem item) { return(base.IsSoldOut(itemConfig, item)); }