| | |
| | | if (itemGUIDDict[guid].packType == type) |
| | | { |
| | | itemGUIDDict.Remove(guid); |
| | | DeleteItemEvent?.Invoke(type, guid, itemID, index, clearType); |
| | | } |
| | | //只是背包转移,不删除但也要通知 |
| | | DeleteItemEvent?.Invoke(type, guid, itemID, index, clearType); |
| | | } |
| | | } |
| | | |
| | |
| | | else |
| | | #endif |
| | | { |
| | | path = AssetVersionUtility.GetAssetFilePath($"Config/{name}.ini"); |
| | | //从服务端拷贝是ini,打包用txt统一处理 |
| | | path = AssetVersionUtility.GetAssetFilePath($"Config/{name}.txt"); |
| | | } |
| | | |
| | | return File.ReadAllLines(path); |
| | |
| | | /// <param name="type"></param> |
| | | /// <param name="id"></param> |
| | | /// <returns></returns> |
| | | public ulong GetItemCountByID(PackType type, int id, bool includeAuction = true) |
| | | public long GetItemCountByID(PackType type, int id, bool includeAuction = true) |
| | | { |
| | | ulong count = 0; |
| | | long count = 0; |
| | | var singlePack = GetSinglePack(type); |
| | | if (singlePack != null) |
| | | { |