Added commision objectives

This commit is contained in:
koritsa
2026-06-01 15:03:37 +03:00
parent db7067fc68
commit cf73d79190
25 changed files with 626 additions and 82 deletions
@@ -6,6 +6,7 @@
#include "Components/WidgetComponent.h"
#include "Kismet/GameplayStatics.h"
#include "NakedDesire/Clothing/ClothingItemDefinition.h"
#include "NakedDesire/Clothing/DroppedClothingSubsystem.h"
#include "NakedDesire/Clothing/ClothingItemInstance.h"
#include "NakedDesire/Clothing/ClothingManager.h"
#include "NakedDesire/Player/NakedDesireCharacter.h"
@@ -63,8 +64,19 @@ void AItemPickup::ShowInteractionProximityHint_Implementation()
void AItemPickup::BeginPlay()
{
Super::BeginPlay();
InteractionHint->SetVisibility(false);
if (UDroppedClothingSubsystem* Dropped = GetWorld()->GetSubsystem<UDroppedClothingSubsystem>())
Dropped->RegisterPickup(this);
}
void AItemPickup::EndPlay(const EEndPlayReason::Type EndPlayReason)
{
if (UDroppedClothingSubsystem* Dropped = GetWorld()->GetSubsystem<UDroppedClothingSubsystem>())
Dropped->UnregisterPickup(this);
Super::EndPlay(EndPlayReason);
}
void AItemPickup::SetItem(UClothingItemInstance* InItem)
@@ -30,6 +30,7 @@ public:
protected:
virtual void BeginPlay() override;
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
private:
UPROPERTY()