Example #1
0
        public EquipmentMenu(Loadout loadout)
        {
            Blocks = new List <Block>
            {
                EquipmentHeader(),
                new Divider()
            };

            Blocks.AddRange(ItemSection(loadout.GetEquipmentAt(EquipmentSlot.Head), "Head"));
            Blocks.AddRange(ItemSection(loadout.GetEquipmentAt(EquipmentSlot.Body), "Body"));
            Blocks.AddRange(ItemSection(loadout.GetEquipmentAt(EquipmentSlot.Gloves), "Gloves"));
            Blocks.AddRange(ItemSection(loadout.GetEquipmentAt(EquipmentSlot.Boots), "Boots"));
            Blocks.AddRange(ItemSection(loadout.GetEquipmentAt(EquipmentSlot.LeftHand), "Left Hand"));
            Blocks.AddRange(ItemSection(loadout.GetEquipmentAt(EquipmentSlot.RightHand), "Right Hand"));
            Blocks.AddRange(ItemSection(loadout.GetEquipmentAt(EquipmentSlot.Neck), "Neck"));
            Blocks.AddRange(ItemSection(loadout.GetEquipmentAt(EquipmentSlot.Skill), "Skill"));
        }