Files
UnrealEngineUWP/Engine/Plugins/Runtime/Metasound/Source/MetasoundStandardNodes/Private/MetasoundValueNode.cpp
rob gay 9f29479f29 Asset Category Hierarchy Support & General Clean-Up
Fixes & Minor refactor of validation/autoupdate to support native node classes properly post composition/preset support changes
#rb phil.popp
[FYI] sondra.moyls
#preflight 611162780182eb0001daa982

#ROBOMERGE-SOURCE: CL 17106014 via CL 17106199
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v854-17104634)

[CL 17106241 by rob gay in ue5-release-engine-test branch]
2021-08-09 15:13:40 -04:00

49 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MetasoundValueNode.h"
#include "MetasoundNodeRegistrationMacro.h"
#define LOCTEXT_NAMESPACE "MetasoundStandardNodes_Value"
namespace Metasound
{
namespace MetasoundValueNodePrivate
{
FNodeClassMetadata CreateNodeClassMetadata(const FName& InDataTypeName, const FName& InOperatorName, const FText& InDisplayName, const FText& InDescription, const FVertexInterface& InDefaultInterface)
{
FNodeClassMetadata Metadata
{
FNodeClassName{ "Value", InOperatorName, InDataTypeName },
1, // Major Version
0, // Minor Version
InDisplayName,
InDescription,
PluginAuthor,
PluginNodeMissingPrompt,
InDefaultInterface,
{ LOCTEXT("ValueCategory", "Value") },
{ },
FNodeDisplayStyle{}
};
return Metadata;
}
}
using FValueNodeInt32 = TValueNode<int32>;
METASOUND_REGISTER_NODE(FValueNodeInt32)
using FValueNodeFloat = TValueNode<float>;
METASOUND_REGISTER_NODE(FValueNodeFloat)
using FValueNodeBool = TValueNode<bool>;
METASOUND_REGISTER_NODE(FValueNodeBool)
using FValueNodeString = TValueNode<FString>;
METASOUND_REGISTER_NODE(FValueNodeString)
}
#undef LOCTEXT_NAMESPACE