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

89 lines
2.9 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "GameFramework/Actor.h"
#include "EDroppableOutpostState.h"
#include "Templates/SubclassOf.h"
#include "DroppableOutpost.generated.h"
class ADroppableOutpost;
class UAutoCarverComponent;
class UCurveFloat;
class UObject;
UCLASS(Blueprintable)
class FSD_API ADroppableOutpost : public AActor {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float DropHeight;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Replicated, meta=(AllowPrivateAccess=true))
FVector TargetLocation;
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
UAutoCarverComponent* AutoCarver;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
UCurveFloat* DepartCurve;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float CarverRotationSpeed;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FVector CarverScale;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float DepartureTime;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
FVector StartLocation;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, ReplicatedUsing=OnRep_State, meta=(AllowPrivateAccess=true))
EDroppableOutpostState State;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float DrillSpeed;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float FreeFallAcceleration;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float FreeFallSpeed;
public:
ADroppableOutpost();
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable)
void StartDrilling();
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable)
void PrepForTakeOff();
protected:
UFUNCTION(BlueprintCallable)
void OnRep_State();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void OnPrepForTakeOff();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void OnDroppodImpact();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void OnDrillingStarted();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void OnDeparting();
public:
UFUNCTION(BlueprintCallable, meta=(WorldContext="WorldContextObject"))
static ADroppableOutpost* DropOutpostToMission(UObject* WorldContextObject, TSubclassOf<ADroppableOutpost> podClass, const FVector& Location);
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable)
void Depart();
};