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

82 lines
2.8 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "UObject/NoExportTypes.h"
#include "GameFramework/Actor.h"
#include "FacilityGeneratorLine.generated.h"
class ATetherStation;
class UMaterialInterface;
class USplineComponent;
class USplineDecoratorComponent;
class UStaticMesh;
UCLASS(Blueprintable)
class FSD_API AFacilityGeneratorLine : public AActor {
GENERATED_BODY()
public:
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FTransform StartTransform;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TArray<FTransform> EndTransforms;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float HeightOffsetMin;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float HeightOffsetMax;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float MaxSegmentLength;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float CarveRadius;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
USplineComponent* SplineComponent;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
USplineDecoratorComponent* SplineDecorator;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSoftObjectPtr<UStaticMesh> LineMeshPtr;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSoftObjectPtr<UMaterialInterface> MaterialConnected;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSoftObjectPtr<UMaterialInterface> MaterialUnconnected;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
ATetherStation* Station;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UStaticMesh* MeshInstance;
UPROPERTY(BlueprintReadWrite, EditAnywhere, ReplicatedUsing=OnRep_Path, meta=(AllowPrivateAccess=true))
TArray<FVector> ReplicatedPath;
UPROPERTY(BlueprintReadWrite, EditAnywhere, ReplicatedUsing=OnRep_Connected, meta=(AllowPrivateAccess=true))
bool Connected;
public:
AFacilityGeneratorLine();
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable)
void SetConnected(bool InConnected);
protected:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void ReceiveBeginPathFinding();
UFUNCTION(BlueprintCallable)
void OnRep_Path();
UFUNCTION(BlueprintCallable)
void OnRep_Connected();
};