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

29 lines
942 B
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Objective.h"
#include "ActivationOjective.generated.h"
UCLASS(Abstract, Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class UActivationOjective : public UObjective {
GENERATED_BODY()
public:
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_ObjectivesFound, meta=(AllowPrivateAccess=true))
int32 ObjectivesFound;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_ObjectivesToFind, meta=(AllowPrivateAccess=true))
int32 ObjectivesToFind;
public:
UActivationOjective();
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
protected:
UFUNCTION(BlueprintCallable)
void OnRep_ObjectivesToFind(int32 prevAmount);
UFUNCTION(BlueprintCallable)
void OnRep_ObjectivesFound(int32 prevAmount);
};