Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

146 lines
2.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
#include "MuR/Ptr.h"
#include "MuR/RefCounted.h"
#include "MuT/Node.h"
#include "MuT/NodeRange.h"
#define UE_API MUTABLETOOLS_API
namespace UE::Mutable::Private
{
/** Base class of any node that outputs a Bool value. */
class NodeBool : 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 ~NodeBool() {}
private:
static UE_API FNodeType StaticType;
};
/** Node returning a Bool constant value. */
class NodeBoolConstant : public NodeBool
{
public:
bool Value = false;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeBoolConstant() {}
private:
static UE_API FNodeType StaticType;
};
/** Node that defines a Bool model parameter. */
class NodeBoolParameter : public NodeBool
{
public:
bool DefaultValue;
FString Name;
FString UID;
TArray<Ptr<NodeRange>> Ranges;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeBoolParameter() {}
private:
static UE_API FNodeType StaticType;
};
/** Node that returns the oposite of the input value. */
class NodeBoolNot : public NodeBool
{
public:
Ptr<NodeBool> Source;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeBoolNot() {}
private:
static UE_API FNodeType StaticType;
};
/** */
class NodeBoolAnd : public NodeBool
{
public:
Ptr<NodeBool> A;
Ptr<NodeBool> B;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeBoolAnd() {}
private:
static UE_API FNodeType StaticType;
};
}
#undef UE_API