private static void LoadDataMatching2(int cafe) { List <GoodItem> matchs = new List <GoodItem>(); lock (ShopAllList) { for (int i = 0; i < ShopAllList.Count; i++) { GoodItem good = ShopAllList[i]; if (good._item._count == 0) { continue; } if (!(good.tag == 4 && cafe == 0) && (good.tag == 4 && cafe > 0 || good.visibility != 2)) { matchs.Add(good); } } } TotalMatching2 = matchs.Count; int Pages = (int)Math.Ceiling(matchs.Count / 741d); int count = 0; for (int i = 0; i < Pages; i++) { byte[] buffer = getMatchingData(741, i, ref count, matchs); ShopData data = new ShopData { Buffer = buffer, ItemsCount = count, Offset = (i * 741) }; ShopDataMt2.Add(data); } }
public static void Reset() { set4p = 0; ShopAllList.Clear(); ShopBuyableList.Clear(); ShopUniqueList.Clear(); ShopDataMt1.Clear(); ShopDataMt2.Clear(); ShopDataGoods.Clear(); ShopDataItems.Clear(); TotalGoods = 0; TotalItems = 0; TotalMatching1 = 0; TotalMatching2 = 0; }