Agrarsense
SensorModel.h
Go to the documentation of this file.
1// Copyright (c) 2023 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
13
14#include "SensorModel.generated.h"
15
19UCLASS()
20class AGRARSENSE_API ASensorModel : public AActor
21{
22 GENERATED_BODY()
23
24public:
26 UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
27 void InitAfterSpawn();
28
30 UFUNCTION(BlueprintPure)
31 ASensor* GetAttachedToSensor() const
32 {
33 return AttachedToSensor;
34 }
35
37 UFUNCTION(BlueprintCallable)
38 void SetAttachedToSensor(ASensor* NewAttachedToSensor)
39 {
40 AttachedToSensor = NewAttachedToSensor;
41 }
42
43protected:
44private:
46 UPROPERTY()
47 TObjectPtr<ASensor> AttachedToSensor;
48};
Definition: Sensor.h:44