2021-02-19 17:05:39 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "MetasoundArrayNodes.h"
|
|
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "MetasoundFrontend"
|
|
|
|
|
|
|
|
|
|
namespace Metasound
|
|
|
|
|
{
|
|
|
|
|
namespace MetasoundArrayNodesPrivate
|
|
|
|
|
{
|
|
|
|
|
FNodeClassMetadata CreateArrayNodeClassMetadata(const FName& InDataTypeName, const FName& InOperatorName, const FText& InDisplayName, const FText& InDescription, const FVertexInterface& InDefaultInterface)
|
|
|
|
|
{
|
|
|
|
|
FNodeClassMetadata Metadata
|
|
|
|
|
{
|
|
|
|
|
FNodeClassName{FName("Array"), InOperatorName, InDataTypeName},
|
|
|
|
|
1, // Major Version
|
|
|
|
|
0, // Minor Version
|
|
|
|
|
InDisplayName,
|
|
|
|
|
InDescription,
|
|
|
|
|
PluginAuthor,
|
|
|
|
|
PluginNodeMissingPrompt,
|
|
|
|
|
InDefaultInterface,
|
2021-08-09 15:13:40 -04:00
|
|
|
{ LOCTEXT("ArrayCategory", "Array") },
|
|
|
|
|
{ LOCTEXT("MetasoundArrayKeyword", "Array") },
|
2021-02-19 17:05:39 -04:00
|
|
|
FNodeDisplayStyle{}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return Metadata;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace ArrayNodeVertexNames
|
|
|
|
|
{
|
|
|
|
|
/* Input Vertx Names */
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetInputArrayName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Array");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetInputLeftArrayName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Left Array");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetInputRightArrayName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Right Array");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetInputTriggerName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Trigger");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetInputIndexName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Index");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetInputStartIndexName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Start Index");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetInputEndIndexName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("End Index");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetInputValueName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Value");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Output Vertex Names */
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetOutputNumName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Num");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetOutputValueName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Element");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-13 14:14:37 -04:00
|
|
|
const FVertexName& GetOutputArrayName()
|
2021-02-19 17:05:39 -04:00
|
|
|
{
|
2021-09-13 14:14:37 -04:00
|
|
|
static const FVertexName Name = TEXT("Array");
|
2021-02-19 17:05:39 -04:00
|
|
|
return Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|