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]
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
#include "MetasoundFacade.h"
|
|
|
|
namespace Metasound
|
|
{
|
|
/** FTriggerAccumulatorNode
|
|
*
|
|
* Creates a Trigger Accumulator Node, that accumulate triggers until hitting a count, then Trigger and reset.
|
|
*/
|
|
class METASOUNDSTANDARDNODES_API FTriggerAccumulatorNode : public FNodeFacade
|
|
{
|
|
public:
|
|
|
|
/** Trigger Accumulator node constructor.
|
|
*
|
|
* @param InName - Name of this node.
|
|
* @param InTriggerAtCount - The count at which after accumulated triggers we trigger.
|
|
*/
|
|
FTriggerAccumulatorNode(const FString& InName, const FGuid& InInstanceID, int32 InDefaultTriggerAtCount);
|
|
|
|
/**
|
|
* Constructor used by the Metasound Frontend.
|
|
*/
|
|
FTriggerAccumulatorNode(const FNodeInitData& InitData);
|
|
|
|
virtual ~FTriggerAccumulatorNode() = default;
|
|
|
|
/**
|
|
* Get Default Trigger At Value.
|
|
*/
|
|
int32 GetDefaultTriggerAt() const { return DefaultTriggerAtCount; }
|
|
|
|
private:
|
|
int32 DefaultTriggerAtCount = 1;
|
|
};
|
|
} // namespace Metasound
|