Files
Naked-Desire/Source/NakedDesire/MissionBuilder/Restrictions/ExposeBodyPartRestriction.h
T
2026-06-03 15:16:30 +03:00

37 lines
873 B
C++

// © 2025 Naked People Team. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "NakedDesire/Clothing/BodyPart.h"
#include "NakedDesire/MissionBuilder/GoalRestriction.h"
#include "ExposeBodyPartRestriction.generated.h"
class UClothingItemInstance;
UCLASS(EditInlineNew)
class NAKEDDESIRE_API UExposeBodyPartRestriction : public UGoalRestriction
{
GENERATED_BODY()
FDelegateHandle EquipClothingHandle;
FDelegateHandle UnequipClothingHandle;
UPROPERTY(EditDefaultsOnly)
EBodyPart BodyPart;
public:
virtual void Init(ANakedDesireCharacter* PlayerCharacter) override;
virtual void Stop() override;
virtual FText GetDescription() const override;
private:
UFUNCTION()
void EquipClothing(UClothingItemInstance* ClothingItemInstance);
UFUNCTION()
void UnequipClothing(UClothingItemInstance* ClothingItemInstance);
void CheckClothing();
};