K2Node_JsonLibraryToStruct.h
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright 2021 Tracer Interactive, LLC. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "EdGraph/EdGraphNodeUtils.h"
#include "UObject/ObjectMacros.h"
#include "Textures/SlateIcon.h"
#include "K2Node.h"
#include "K2Node_JsonLibraryToStruct.generated.h"
class FBlueprintActionDatabaseRegistrar;
class UEdGraph;
UCLASS()
class JSONLIBRARYBLUEPRINTSUPPORT_API UK2Node_JsonLibraryToStruct : public UK2Node
{
GENERATED_UCLASS_BODY()
virtual void AllocateDefaultPins() override;
virtual FText GetNodeTitle( ENodeTitleType::Type TitleType ) const override;
virtual FText GetTooltipText() const override;
virtual void ExpandNode( class FKismetCompilerContext& CompilerContext, UEdGraph* SourceGraph ) override;
virtual FSlateIcon GetIconAndTint( FLinearColor& OutColor ) const override;
virtual void PostReconstructNode() override;
virtual bool IsNodeSafeToIgnore() const override { return true; }
virtual void GetMenuActions( FBlueprintActionDatabaseRegistrar& ActionRegistrar ) const override;
virtual FText GetMenuCategory() const override;
virtual bool IsConnectionDisallowed( const UEdGraphPin* MyPin, const UEdGraphPin* OtherPin, FString& OutReason ) const override;
virtual void EarlyValidation( class FCompilerResultsLog& MessageLog ) const override;
virtual void NotifyPinConnectionListChanged( UEdGraphPin* Pin ) override;
UScriptStruct* GetReturnTypeForStruct() const;
UEdGraphPin* GetThenPin() const;
UEdGraphPin* GetDataPin() const;
UEdGraphPin* GetFailedPin() const;
UEdGraphPin* GetResultPin() const;
private:
void SetPinToolTip( UEdGraphPin& MutatablePin, const FText& PinDescription ) const;
void SetReturnTypeForStruct( UScriptStruct* InClass );
void RefreshOutputPinType();
FText NodeTooltip;
FNodeTextCache CachedNodeTitle;
};