Added wardrobe

This commit is contained in:
2026-05-31 21:00:55 +03:00
parent 49310a992b
commit f94dce1bfb
39 changed files with 787 additions and 111 deletions
@@ -41,7 +41,16 @@ public:
void DropClothing(const EClothingSlotType ClothingType);
bool IsClothingTypeOn(const EClothingSlotType ClothingType);
void TakeClothing(UClothingItemInstance* ClothingItemInstance);
// Equip an item arriving from off-body storage: writes the EquippedItems save record and
// applies it to its slot. Slot-occupant / bodysuit-exclusion handling is the caller's job
// (see UInventorySubsystem::EquipFromWardrobe), so displaced items can be routed deliberately.
void EquipSlot(UClothingItemInstance* ClothingItemInstance);
UClothingItemInstance* RemoveClothing(EClothingSlotType ClothingSlotType);
// Slots that must be vacated when SlotType is equipped, per the bodysuit exclusion rule (§6.5).
static TArray<EClothingSlotType> GetBodysuitExcludedSlots(EClothingSlotType SlotType);
void SetClothingSlotItem(const EClothingSlotType ClothingSlotType, UClothingItemInstance* ClothingItemInstance);
TArray<UClothingItemInstance*> GetEquippedClothing() const;
UClothingItemInstance* GetSlotClothing(EClothingSlotType SlotType);