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

189 lines
6.8 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "CannisterRegisteredDelegate.h"
#include "EEscortMissionState.h"
#include "MuleRefueledDelegate.h"
#include "Objective.h"
#include "ShellBreakPauseChangeSignatureDelegate.h"
#include "ShellBreakTimerSignatureDelegate.h"
#include "EscortObjective.generated.h"
class AActor;
class AEscortDestination;
class AEscortMule;
class AExtractorItem;
class UCappedResource;
class UCarvedResourceData;
class UCurveFloat;
class UDebrisBase;
class UDebrisPositioning;
class UHealthComponentBase;
class UResourceData;
UCLASS(Abstract, Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class FSD_API UEscortObjective : public UObjective {
GENERATED_BODY()
public:
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FShellBreakTimerSignature OnProgressUpdated;
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FShellBreakPauseChangeSignature OnShellBreakPauseChange;
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FMuleRefueled OnMuleRefueled;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
bool DidRescueDorettaHead;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_AreasToScan, meta=(AllowPrivateAccess=true))
int32 AreasToScan;
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
int32 ScanCount;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
TArray<FVector> ScanLocations;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
UDebrisPositioning* Positioning;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
UDebrisPositioning* EscortMulePositioning;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UCurveFloat* CostDistanceCurve;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float DebrisRadius;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
TArray<UDebrisBase*> ObjectDebris;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSoftClassPtr<AActor> RefuelObjectClass;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSoftClassPtr<AEscortDestination> DestinationClass;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_AreasScanned, meta=(AllowPrivateAccess=true))
int32 AreasScanned;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_EscortState, meta=(AllowPrivateAccess=true))
EEscortMissionState State;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
bool FinalBattle;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UCarvedResourceData* FuelResource;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UResourceData* GemResource;
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FCannisterRegistered OnCannisterRegistered;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Replicated, meta=(AllowPrivateAccess=true))
float ServerShellProgress;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 SecondsToDestroyHeartstone;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 FullCanistersRequired;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_FullCanisters, meta=(AllowPrivateAccess=true))
int32 FullCanisters;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 FuelResourceAmount;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSoftClassPtr<AActor> GarageDropCarver;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSoftClassPtr<AActor> EscortMuleDropBeaconClass;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSoftClassPtr<AActor> GarageClass;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
FVector EscortMuleDropLocation;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_EscortMule, meta=(AllowPrivateAccess=true))
AEscortMule* EscortMule;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Replicated, Transient, meta=(AllowPrivateAccess=true))
AEscortDestination* EscortDestination;
public:
UEscortObjective();
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
UFUNCTION(BlueprintCallable)
void SyncProgressTimer();
UFUNCTION(BlueprintCallable, NetMulticast, Reliable)
void StartShellBreak();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void SpawnGarage();
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable)
void SetState(EEscortMissionState NewState);
UFUNCTION(BlueprintCallable)
void SetShellBreakPaused(bool newPaused);
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable)
void SetEscortMule(AEscortMule* MULE);
UFUNCTION(BlueprintCallable)
void RegisterFuelCannister(AExtractorItem* extractor);
protected:
UFUNCTION(BlueprintCallable)
void RecordFailStage(bool muleDied, bool missionAborted);
UFUNCTION(BlueprintCallable)
void OnResourceChanged(UCappedResource* CappedResource, float Amount);
UFUNCTION(BlueprintCallable)
void OnRep_FullCanisters();
UFUNCTION(BlueprintCallable)
void OnRep_EscortState();
UFUNCTION(BlueprintCallable)
void OnRep_EscortMule();
UFUNCTION(BlueprintCallable)
void OnRep_AreasToScan(int32 prevAmount);
UFUNCTION(BlueprintCallable)
void OnRep_AreasScanned(int32 prevAmount);
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void OnMuleDied(UHealthComponentBase* HealthComponent);
UFUNCTION(BlueprintCallable)
void OnHealthChanged(float Health);
UFUNCTION(BlueprintCallable)
void OnFullCanistersChanged(int32 Amount);
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void OnEscortMuleSpawnedEvent();
UFUNCTION(BlueprintCallable, BlueprintPure)
float GetShellBreakProgress();
public:
UFUNCTION(BlueprintCallable, BlueprintPure)
bool DoesPathExist(FVector Start, FVector End);
};