2021-03-16 00:47:44 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
2021-03-16 00:22:37 -04:00
|
|
|
#include "MetasoundDebugLogNode.h"
|
|
|
|
|
|
|
|
|
|
#include "MetasoundNodeRegistrationMacro.h"
|
2021-03-30 15:49:01 -04:00
|
|
|
#include "MetasoundStandardNodesCategories.h"
|
2021-03-16 00:22:37 -04:00
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "MetasoundStandardNodes"
|
|
|
|
|
|
|
|
|
|
namespace Metasound
|
|
|
|
|
{
|
|
|
|
|
namespace MetasoundDebugLogNodePrivate
|
|
|
|
|
{
|
|
|
|
|
FNodeClassMetadata CreateNodeClassMetadata(const FName& InDataTypeName, const FName& InOperatorName, const FText& InDisplayName, const FText& InDescription, const FVertexInterface& InDefaultInterface)
|
|
|
|
|
{
|
|
|
|
|
FNodeClassMetadata Metadata
|
|
|
|
|
{
|
|
|
|
|
FNodeClassName{FName("DebugLog"), InOperatorName, InDataTypeName},
|
|
|
|
|
1, // Major Version
|
|
|
|
|
0, // Minor Version
|
|
|
|
|
InDisplayName,
|
|
|
|
|
InDescription,
|
|
|
|
|
PluginAuthor,
|
|
|
|
|
PluginNodeMissingPrompt,
|
|
|
|
|
InDefaultInterface,
|
2021-03-30 15:49:01 -04:00
|
|
|
{ StandardNodes::DebugUtils },
|
2021-03-16 00:22:37 -04:00
|
|
|
{TEXT("DebugLog")},
|
|
|
|
|
FNodeDisplayStyle{}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return Metadata;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace DebugLogVertexNames
|
|
|
|
|
{
|
|
|
|
|
const FString& GetInputTriggerName()
|
|
|
|
|
{
|
|
|
|
|
static const FString Name = TEXT("Trigger");
|
|
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const FString& GetLabelDebugLogName()
|
|
|
|
|
{
|
|
|
|
|
static const FString Name = TEXT("Label");
|
|
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const FString& GetToLogDebugLogName()
|
|
|
|
|
{
|
|
|
|
|
static const FString Name = TEXT("Value To Log");
|
|
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const FString& GetOutputDebugLogName()
|
|
|
|
|
{
|
|
|
|
|
static const FString Name = TEXT("Was Successful");
|
|
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
using FDebugLogNodeInt32 = TDebugLogNode<int32>;
|
|
|
|
|
METASOUND_REGISTER_NODE(FDebugLogNodeInt32)
|
|
|
|
|
|
|
|
|
|
using FDebugLogNodeFloat = TDebugLogNode<float>;
|
|
|
|
|
METASOUND_REGISTER_NODE(FDebugLogNodeFloat)
|
|
|
|
|
|
|
|
|
|
using FDebugLogNodeBool = TDebugLogNode<bool>;
|
|
|
|
|
METASOUND_REGISTER_NODE(FDebugLogNodeBool)
|
|
|
|
|
|
|
|
|
|
using FDebugLogNodeString = TDebugLogNode<FString>;
|
|
|
|
|
METASOUND_REGISTER_NODE(FDebugLogNodeString)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|