DRG-Femboy-Voice/Source/FSD/Public/ItemUpgradePreviewComponent.h
2025-04-15 12:39:31 -07:00

30 lines
933 B
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "ItemUpgradePreviewComponent.generated.h"
class UItemUpgrade;
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class UItemUpgradePreviewComponent : public UActorComponent {
GENERATED_BODY()
public:
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FItemUpgradeDelegate, UItemUpgrade*, PreviewUpgrade);
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FItemUpgradeDelegate OnPreviewUpgradeChanged;
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UItemUpgrade* PreviewUpgrade;
public:
UItemUpgradePreviewComponent();
UFUNCTION(BlueprintCallable)
void SetPreviewUpgrade(UItemUpgrade* InUpgrade);
UFUNCTION(BlueprintCallable)
void RefreshPreviewUpgrade();
};