| | 1 | | using System.Collections.Generic; |
| | 2 | | using DCL.Helpers; |
| | 3 | |
|
| | 4 | | public class WearablesCatalogControllerBridge : IWearableCatalogBridge |
| | 5 | | { |
| | 6 | | public Promise<WearableItem[]> RequestOwnedWearables(string userId) |
| | 7 | | { |
| 1 | 8 | | return CatalogController.RequestOwnedWearables(userId); |
| | 9 | | } |
| | 10 | |
|
| | 11 | | public bool IsValidWearable(string wearableId) |
| | 12 | | { |
| 0 | 13 | | if (!CatalogController.wearableCatalog.TryGetValue(wearableId, out var wearable)) |
| 0 | 14 | | return false; |
| 0 | 15 | | return wearable != null; |
| | 16 | | } |
| | 17 | |
|
| | 18 | | public void RemoveWearablesInUse(List<string> loadedWearables) |
| | 19 | | { |
| 0 | 20 | | CatalogController.RemoveWearablesInUse(loadedWearables); |
| 0 | 21 | | } |
| | 22 | | } |