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

24 lines
734 B
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "DestinationActorComponent.generated.h"
class AActor;
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class FSD_API UDestinationActorComponent : public UActorComponent {
GENERATED_BODY()
public:
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Replicated, Transient, meta=(AllowPrivateAccess=true))
TWeakObjectPtr<AActor> DestinationActor;
public:
UDestinationActorComponent();
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
UFUNCTION(BlueprintCallable, BlueprintPure)
float GetDistToDestinationActor() const;
};