You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira na #rb helge.mathee #preflight https://horde.devtools.epicgames.com/job/62769cbe75268b4ace10dc69 [CL 20101111 by sara schvartzman in ue5-main branch]
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "RigVMTemplateNode.h"
|
|
#include "RigVMSelectNode.generated.h"
|
|
|
|
/**
|
|
* A select node is used to select between multiple values
|
|
*/
|
|
UCLASS(BlueprintType)
|
|
class RIGVMDEVELOPER_API URigVMSelectNode : public URigVMTemplateNode
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
// Override from URigVMTemplateNode
|
|
virtual FName GetNotation() const override;
|
|
virtual const FRigVMTemplate* GetTemplate() const override;
|
|
virtual bool IsSingleton() const override { return false; }
|
|
|
|
// Override from URigVMNode
|
|
virtual FString GetNodeTitle() const override { return SelectName; }
|
|
virtual FLinearColor GetNodeColor() const override { return FLinearColor::Black; }
|
|
|
|
protected:
|
|
|
|
virtual bool AllowsLinksOn(const URigVMPin* InPin) const override;
|
|
|
|
private:
|
|
|
|
static const FString SelectName;
|
|
static const FString IndexName;
|
|
static const FString ValueName;
|
|
static const FString ResultName;
|
|
|
|
friend class URigVMController;
|
|
friend class URigVMCompiler;
|
|
friend struct FRigVMAddSelectNodeAction;
|
|
friend class UControlRigSelectNodeSpawner;
|
|
friend class FRigVMParserAST;
|
|
friend class FRigVMSelectExprAST;
|
|
};
|
|
|