Esempio n. 1
0
        public static bool DelShopItem(string id, int level, string item)
        {
            List <ShopData_Str> shopDataList = new List <ShopData_Str>();

            if (level >= 0 && level < 4)
            {
                shopDataList = m_ShopDataList[level];
            }
            else
            {
                return(false);
            }

            foreach (var it in shopDataList)
            {
                if (CFormat.ToSimplified(it.code) == id)
                {
                    it.list.Remove(CFormat.ToTraditional(item));
                    return(true);
                }
            }
            m_ShopDataList[level] = shopDataList;

            return(false);
        }