private void InitializeSkinUnlocks(ItemUnlockUIComponent itemUnlockUI, SelectedItemUI selectedItemUI, Entity entity) { TankPartItem tankPartItem = selectedItemUI.TankPartItem; List <VisualItem> list = new List <VisualItem>(); foreach (VisualItem item2 in tankPartItem.Skins) { if (item2.RestrictionLevel > 0) { list.Add(item2); } } GetAllGraffitiesEvent eventInstance = new GetAllGraffitiesEvent(); base.ScheduleEvent(eventInstance, entity); foreach (VisualItem item3 in eventInstance.Items) { if (ReferenceEquals(item3.ParentItem, tankPartItem) && (item3.RestrictionLevel > 0)) { list.Add(item3); } } if (< > f__am$cache0 == null) {
private void SetItem(GarageUserItemNode item, SelectedItemUI ui, MountedSkin mountedSkin) { ui.Set(GarageItemsRegistry.GetItem <TankPartItem>(item.marketItemGroup.Key), mountedSkin.descriptionItem.Name, item.upgradeLevelItem.Level); }