64 lines
2.1 KiB
C++
Executable file
64 lines
2.1 KiB
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/NoExportTypes.h"
|
|
#include "DelegateDelegate.h"
|
|
#include "MULE.h"
|
|
#include "Molly.generated.h"
|
|
|
|
class APlayerCharacter;
|
|
class UDialogDataAsset;
|
|
class UNiagaraSystem;
|
|
class UOutlineComponent;
|
|
class UResourceBank;
|
|
|
|
UCLASS(Abstract, Blueprintable)
|
|
class FSD_API AMolly : public AMULE {
|
|
GENERATED_BODY()
|
|
public:
|
|
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FCalledByDelegate, APlayerCharacter*, InPlayer);
|
|
|
|
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
FCalledByDelegate OnCalledByChanged;
|
|
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
|
|
UResourceBank* ResourceBank;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
|
|
UOutlineComponent* OutlineComponent;
|
|
|
|
UPROPERTY(BlueprintAssignable, BlueprintCallable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
FDelegate OnReachedDropShip;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_CalledBy, meta=(AllowPrivateAccess=true))
|
|
TWeakObjectPtr<APlayerCharacter> CalledBy;
|
|
|
|
public:
|
|
AMolly();
|
|
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void SetOpenForDeposit(bool Open);
|
|
|
|
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable, BlueprintImplementableEvent)
|
|
void SetGotoDropShip(const FVector& Location);
|
|
|
|
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable)
|
|
void SetCalledBy(APlayerCharacter* InPlayer);
|
|
|
|
protected:
|
|
UFUNCTION(BlueprintCallable)
|
|
void OnRep_CalledBy();
|
|
|
|
public:
|
|
UFUNCTION(BlueprintCallable, BlueprintNativeEvent)
|
|
UDialogDataAsset* GetCallingShout() const;
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
|
void EnableButton();
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
|
void AddTrayEffect(UNiagaraSystem* Effect, int32 numberOfTraysAffected);
|
|
|
|
};
|
|
|