public static uint GetStarLevelForOpenGuildItemShopSlot(int slotOffset) { uint num = 0u; int count = GameDataMgr.guildStarLevel.count; for (int i = 0; i < count; i++) { ResGuildShopStarIndexConf dataByIndex = GameDataMgr.guildStarLevel.GetDataByIndex(i); if ((ulong)num <= (ulong)((long)slotOffset) && (long)slotOffset < (long)((ulong)dataByIndex.dwGuildItemShopOpenSlotCnt)) { return(dataByIndex.dwBeginStar); } num = dataByIndex.dwGuildItemShopOpenSlotCnt; } DebugHelper.Assert(false, "error slotOffset{0}: check shop and guildStarLevel res!!!", new object[] { slotOffset }); return(0u); }
public static uint GetGuildItemShopOpenSlotCount() { uint guildStarLevel = CGuildHelper.GetGuildStarLevel(); if (guildStarLevel == 0u) { DebugHelper.Assert(false, "error guildStarLevel: {0}!!!", new object[] { guildStarLevel }); return(0u); } ResGuildShopStarIndexConf resGuildShopStarIndexConf = GameDataMgr.guildStarLevel.FindIf((ResGuildShopStarIndexConf x) => x.dwBeginStar <= guildStarLevel && guildStarLevel <= x.dwEndStar); if (resGuildShopStarIndexConf != null) { return(resGuildShopStarIndexConf.dwGuildItemShopOpenSlotCnt); } return(0u); }