You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Rename FNodeInfo to FNodeClassMetadata - Add FGuid to Metasound node instances - Metasound node class names are now Namespace.Name.Variant - Add displayname for Metasound node classes. #jira UE-107332 #jira UEAU-660 #rb Rob.Gay [CL 15253779 by phil popp in ue5-main branch]
61 lines
1.7 KiB
C++
61 lines
1.7 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "MetasoundNode.h"
|
|
#include "MetasoundOperatorInterface.h"
|
|
#include "MetasoundBuilderInterface.h"
|
|
#include "MetasoundDataReferenceCollection.h"
|
|
|
|
namespace Metasound
|
|
{
|
|
class METASOUNDENGINE_API FWaveSelectorNode : public FNode
|
|
{
|
|
class FOperatorFactory : public IOperatorFactory
|
|
{
|
|
virtual TUniquePtr<IOperator> CreateOperator(const FCreateOperatorParams& InParams, FBuildErrorArray& OutErrors) override;
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
static FVertexInterface DeclareVertexInterface();
|
|
static const FNodeClassMetadata& GetNodeInfo();
|
|
|
|
FWaveSelectorNode(const FString& InName, const FGuid& InInstanceID);
|
|
|
|
// constructor used by the Metasound Frontend.
|
|
FWaveSelectorNode(const FNodeInitData& InInitData);
|
|
|
|
virtual ~FWaveSelectorNode() = default;
|
|
|
|
virtual FOperatorFactorySharedRef GetDefaultOperatorFactory() const override;
|
|
|
|
/** Return the current vertex interface. */
|
|
virtual const FVertexInterface& GetVertexInterface() const override;
|
|
|
|
/** Set the vertex interface. If the vertex was successfully changed, returns true.
|
|
*
|
|
* @param InInterface - New interface for node.
|
|
*
|
|
* @return True on success, false otherwise.
|
|
*/
|
|
virtual bool SetVertexInterface(const FVertexInterface& InInterface) override;
|
|
|
|
/** Expresses whether a specific vertex interface is supported.
|
|
*
|
|
* @param InInterface - New interface.
|
|
*
|
|
* @return True if the interface is supported, false otherwise.
|
|
*/
|
|
virtual bool IsVertexInterfaceSupported(const FVertexInterface& InInterface) const override;
|
|
|
|
private:
|
|
|
|
FOperatorFactorySharedRef Factory;
|
|
|
|
FVertexInterface Interface;
|
|
};
|
|
}
|