Agrarsense
DeletionVolume.h
Go to the documentation of this file.
1// Copyright (c) 2024 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "GameFramework/Actor.h"
10#include "Components/BoxComponent.h"
12
13#include "DeletionVolume.generated.h"
14
15UCLASS()
16class AGRARSENSE_API ADeletionVolume : public AActor
17{
18 GENERATED_BODY()
19
20public:
21
23
24 /*
25 * Change UBoxComponent bounds.
26 */
27 UFUNCTION(BlueprintCallable)
28 void ChangeOverlapBounds(FVector Bounds);
29
35 UFUNCTION(BlueprintCallable)
36 void DestroyOverlappingActors(bool OnlyTrees);
37
38protected:
39
40 virtual void BeginPlay() override;
41
42 virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
43
44 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Components")
45 UBoxComponent* CollisionBox = nullptr;
46
47 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Components")
48 UBoundsVisualizerComponent* VisualizerComponent = nullptr;
49
50};