Added container slots
This commit is contained in:
@@ -3,15 +3,33 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
|
#include "BodyPart.h"
|
||||||
#include "ClothingSlotType.h"
|
#include "ClothingSlotType.h"
|
||||||
#include "Engine/DataAsset.h"
|
#include "Engine/DataAsset.h"
|
||||||
#include "NakedDesire/Player/PrivateBodyPartType.h"
|
#include "NakedDesire/Player/PrivateBodyPartType.h"
|
||||||
#include "NakedDesire/Progression/ProgressionPath.h"
|
#include "NakedDesire/Progression/ProgressionPath.h"
|
||||||
#include "ClothingItem.generated.h"
|
#include "ClothingItem.generated.h"
|
||||||
|
|
||||||
/**
|
UENUM(BlueprintType)
|
||||||
*
|
enum class EGarmentContainerSlotType : uint8
|
||||||
*/
|
{
|
||||||
|
S UMETA(DisplayName = "Small"),
|
||||||
|
M UMETA(DisplayName = "Medium"),
|
||||||
|
L UMETA(DisplayName = "Large"),
|
||||||
|
};
|
||||||
|
|
||||||
|
USTRUCT(BlueprintType)
|
||||||
|
struct NAKEDDESIRE_API FGarmentContainerSlot
|
||||||
|
{
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||||
|
EGarmentContainerSlotType SlotType = EGarmentContainerSlotType::S;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (ClampMin = 1))
|
||||||
|
int32 Count = 1;
|
||||||
|
};
|
||||||
|
|
||||||
UCLASS(BlueprintType)
|
UCLASS(BlueprintType)
|
||||||
class NAKEDDESIRE_API UClothingItem : public UPrimaryDataAsset
|
class NAKEDDESIRE_API UClothingItem : public UPrimaryDataAsset
|
||||||
{
|
{
|
||||||
@@ -50,4 +68,19 @@ public:
|
|||||||
|
|
||||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||||
EProgressionPath ProgressionPath;
|
EProgressionPath ProgressionPath;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||||
|
TArray<EBodyPart> CanExpose;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||||
|
bool IsRestrictive;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||||
|
float Coverage = 1.0f;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||||
|
bool IsUnderwear;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
|
||||||
|
TArray<FGarmentContainerSlot> ContainerSlots;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,4 +20,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
UPROPERTY(BlueprintReadOnly, Category = "Clothing Item")
|
UPROPERTY(BlueprintReadOnly, Category = "Clothing Item")
|
||||||
TObjectPtr<UClothingItem> ClothingItem;
|
TObjectPtr<UClothingItem> ClothingItem;
|
||||||
|
|
||||||
|
UPROPERTY(BlueprintReadOnly, Category = "Clothing Item")
|
||||||
|
TArray<TObjectPtr<UItemInstance>> StoredItems;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user