| | 1 | | using System.Collections.Generic; |
| | 2 | | using System.Linq; |
| | 3 | | using UnityEngine; |
| | 4 | |
|
| | 5 | | namespace DCL |
| | 6 | | { |
| | 7 | | public class EquippedEmoteData |
| | 8 | | { |
| | 9 | | public string id; |
| | 10 | | public Sprite cachedThumbnail; |
| | 11 | | } |
| | 12 | |
|
| | 13 | | public class DataStore_EmotesCustomization |
| | 14 | | { |
| 69 | 15 | | public readonly BaseVariable<bool> isWheelInitialized = new BaseVariable<bool>(false); |
| 69 | 16 | | public readonly BaseCollection<EquippedEmoteData> unsavedEquippedEmotes = new BaseCollection<EquippedEmoteData>( |
| 69 | 17 | | public readonly BaseCollection<EquippedEmoteData> equippedEmotes = new BaseCollection<EquippedEmoteData>(new Lis |
| 69 | 18 | | public readonly BaseVariable<bool> isEmotesCustomizationSelected = new BaseVariable<bool>(false); |
| 69 | 19 | | public readonly BaseCollection<string> currentLoadedEmotes = new BaseCollection<string>(); |
| | 20 | |
|
| | 21 | | public void FilterOutNotOwnedEquippedEmotes(IEnumerable<WearableItem> emotes) |
| | 22 | | { |
| 0 | 23 | | var filtered = equippedEmotes.Get().Where(x => emotes.Any(y => x.id == y.id) ).ToArray(); |
| 0 | 24 | | equippedEmotes.Set(filtered); |
| 0 | 25 | | } |
| | 26 | | } |
| | 27 | | } |