Agrarsense
WalkerParameters.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
10#include "WalkerType.h"
11#include "WalkerAction.h"
12#include "WalkerEndAction.h"
13
14#include "WalkerParameters.generated.h"
15
16USTRUCT(Blueprintable)
17struct AGRARSENSE_API FWalkerParameters
18{
19 GENERATED_BODY()
20
21 /*
22 * WalkerType to spawn
23 */
24 UPROPERTY(EditAnywhere, BlueprintReadWrite)
25 EWalkerType WalkerType = EWalkerType::NONE;
26
27 /*
28 * Walker speed
29 */
30 UPROPERTY(EditAnywhere, BlueprintReadWrite)
31 float WalkerSpeed = 50.0f;
32
33 /*
34 * What is this Walker's Action type
35 */
36 UPROPERTY(EditAnywhere, BlueprintReadWrite)
37 EWalkerAction WalkerAction = EWalkerAction::Roaming;
38
39 /*
40 * What is this Walker's Action when reached end point (does not apply to Roaming walker)
41 */
42 UPROPERTY(EditAnywhere, BlueprintReadWrite)
43 EWalkerEndAction WalkerEndAction = EWalkerEndAction::RepeatFromBeginning;
44
45 /*
46 * TArray of FTransforms
47 * Indices should be as follows:
48 * First index --> starting point
49 * n points
50 * Last index --> end point
51 */
52 UPROPERTY(EditAnywhere, BlueprintReadWrite)
53 TArray<FTransform> Points;
54
55};
EWalkerAction
Definition: WalkerAction.h:15
EWalkerEndAction
EWalkerType
Definition: WalkerType.h:16