LEAP Documentation 40220
Documentation for the LEAP project
BTDecorator_BlackboardChanged.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2022. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "BehaviorTree/Decorators/BTDecorator_BlackboardBase.h"
7#include "BTDecorator_BlackboardChanged.generated.h"
8
9UCLASS()
10class PROJECTX_API UBTDecorator_BlackboardChanged : public UBTDecorator_BlackboardBase
11{
12 GENERATED_BODY()
13
14 /*How long should this decorator return true when the condition is met before resetting back to a false state? (Possibly aborting sub tasks) */
15 UPROPERTY(EditAnywhere)
16 float ResetTime = 1.0f;
17
18 virtual FString GetStaticDescription() const override;
19
20 virtual EBlackboardNotificationResult OnBlackboardKeyValueChange(const UBlackboardComponent& Blackboard, FBlackboard::FKey ChangedKeyID) override;
21 virtual bool CalculateRawConditionValue(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) const override;
22 virtual void ResetStatID(uint64 PackedKey);
23
24 mutable TMap<uint64, FTimerHandle> ChangedValueHashes;
25};
Definition: BTDecorator_BlackboardChanged.h:11