Ejemplo n.º 1
0
        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)
            {
Ejemplo n.º 2
0
 public void GetGraffities(GetAllGraffitiesEvent e, Node any, [JoinAll, Combine] MarketGraffitiNode graffiti)
 {
     this.Add <VisualItem>(e.Items, graffiti.Entity, graffiti.imageItem.SpriteUid);
 }