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

42 lines
1.3 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "Engine/NetSerialization.h"
#include "MineHitEventDelegate.h"
#include "DroneMiningToolBase.generated.h"
class UTerrainMaterial;
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class UDroneMiningToolBase : public UActorComponent {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FMineHitEvent HitSomething;
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float range;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float SameHitDistance;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
float MineRadius;
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
int32 MineStrength;
public:
UDroneMiningToolBase();
UFUNCTION(BlueprintCallable)
void StopMining();
UFUNCTION(BlueprintCallable)
void StartMining();
UFUNCTION(BlueprintCallable, NetMulticast, Unreliable)
void SpawnEffects(UTerrainMaterial* aTerrainMaterial, bool aParialHit, FVector_NetQuantize aLocation, FVector_NetQuantize aImpactNormal);
};