A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
VaRest_BreakJson.h
Go to the documentation of this file.
1// Copyright 2014-2019 Vladimir Alyamkin. All Rights Reserved.
2// Original code by https://github.com/unktomi
3
4#pragma once
5
6#include "Runtime/Launch/Resources/Version.h"
7
8#include "CoreMinimal.h"
9#include "K2Node.h"
10
11#include "VaRest_BreakJson.generated.h"
12
13UENUM(BlueprintType)
14enum class EVaRest_JsonType : uint8
15{
16 //JSON_Null UMETA(DisplayName = "Null"),
17 JSON_Bool UMETA(DisplayName = "Boolean"),
18 JSON_Number UMETA(DisplayName = "Number"),
19 JSON_String UMETA(DisplayName = "String"),
20 JSON_Object UMETA(DisplayName = "Object")
21};
22
23USTRUCT(BlueprintType)
25{
27
28 UPROPERTY(EditAnywhere, Category = NamedType)
29 FName Name;
31 UPROPERTY(EditAnywhere, Category = NamedType)
33
34 UPROPERTY(EditAnywhere, Category = NamedType)
35 bool bIsArray;
36};
37
38UCLASS(BlueprintType, Blueprintable)
39class VARESTEDITOR_API UVaRest_MakeJson : public UK2Node
40{
41 GENERATED_UCLASS_BODY()
42
43public:
44 // Begin UEdGraphNode interface.
45 virtual void AllocateDefaultPins() override;
46 virtual FLinearColor GetNodeTitleColor() const override;
47 virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override;
48 // End UEdGraphNode interface.
49
50 // Begin UK2Node interface
51 virtual bool IsNodePure() const { return true; }
52 virtual bool ShouldShowNodeProperties() const { return true; }
53 void GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const override;
54 virtual FText GetMenuCategory() const override;
55 virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
56 virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override;
57 // End UK2Node interface.
59protected:
60 virtual void CreateProjectionPins(UEdGraphPin* Source);
61
62public:
63 UPROPERTY(EditAnywhere, Category = PinOptions)
64 TArray<FVaRest_NamedType> Inputs;
65};
66
67UCLASS(BlueprintType, Blueprintable)
68class VARESTEDITOR_API UVaRest_BreakJson : public UK2Node
69{
70 GENERATED_UCLASS_BODY()
72public:
73 // Begin UEdGraphNode interface.
74 virtual void AllocateDefaultPins() override;
75 virtual FLinearColor GetNodeTitleColor() const override;
76 virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override;
77 // End UEdGraphNode interface.
78
79 // Begin UK2Node interface
80 virtual bool IsNodePure() const { return true; }
81 virtual bool ShouldShowNodeProperties() const { return true; }
82 void GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const override;
83 virtual FText GetMenuCategory() const override;
84 virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
85 virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override;
86 // End UK2Node interface.
87
88protected:
89 virtual void CreateProjectionPins(UEdGraphPin* Source);
90
91public:
92 UPROPERTY(EditAnywhere, Category = PinOptions)
93 TArray<FVaRest_NamedType> Outputs;
94};
EVaRest_JsonType
UENUM(BlueprintType)
UCLASS(BlueprintType, Blueprintable)
virtual bool IsNodePure() const
TArray< FVaRest_NamedType > Outputs
UPROPERTY(EditAnywhere, Category = PinOptions)
virtual bool ShouldShowNodeProperties() const
UCLASS(BlueprintType, Blueprintable)
virtual bool ShouldShowNodeProperties() const
virtual bool IsNodePure() const
TArray< FVaRest_NamedType > Inputs
UPROPERTY(EditAnywhere, Category = PinOptions)
USTRUCT(BlueprintType)
FName Name
UPROPERTY(EditAnywhere, Category = NamedType)
bool bIsArray
UPROPERTY(EditAnywhere, Category = NamedType)
EVaRest_JsonType Type
UPROPERTY(EditAnywhere, Category = NamedType)