35 lines
591 B
C++
35 lines
591 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MuT/Node.h"
|
|
|
|
#define UE_API MUTABLETOOLS_API
|
|
|
|
namespace UE::Mutable::Private
|
|
{
|
|
|
|
/** Base class of any node that outputs a scalar value. */
|
|
class NodeScalar : public Node
|
|
{
|
|
public:
|
|
|
|
// Node Interface
|
|
virtual const FNodeType* GetType() const override { return &StaticType; }
|
|
static const FNodeType* GetStaticType() { return &StaticType; }
|
|
|
|
protected:
|
|
|
|
/** Forbidden. Manage with the Ptr<> template. */
|
|
inline ~NodeScalar() {}
|
|
|
|
private:
|
|
|
|
static UE_API FNodeType StaticType;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#undef UE_API
|