You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira #preflight 6337f41a5c2225fe5fd4eddf [CL 22293097 by bryan sefcik in ue5-main branch]
69 lines
1.5 KiB
C++
69 lines
1.5 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"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
// Forward definitions
|
|
class NodeString;
|
|
typedef Ptr<NodeString> NodeStringPtr;
|
|
typedef Ptr<const NodeString> NodeStringPtrConst;
|
|
|
|
|
|
//! %Base class of any node that outputs a string value.
|
|
//! \ingroup model
|
|
class MUTABLETOOLS_API NodeString : public Node
|
|
{
|
|
public:
|
|
|
|
// Possible subclasses
|
|
enum class EType : uint8
|
|
{
|
|
Constant = 0,
|
|
Parameter = 1,
|
|
|
|
None
|
|
};
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Life cycle
|
|
//-----------------------------------------------------------------------------------------
|
|
|
|
static void Serialise( const NodeString* pNode, OutputArchive& arch );
|
|
static NodeStringPtr StaticUnserialise( InputArchive& arch );
|
|
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Node Interface
|
|
//-----------------------------------------------------------------------------------------
|
|
|
|
const NODE_TYPE* GetType() const override;
|
|
static const NODE_TYPE* GetStaticType();
|
|
|
|
|
|
//-----------------------------------------------------------------------------------------
|
|
// Interface pattern
|
|
//-----------------------------------------------------------------------------------------
|
|
class Private;
|
|
|
|
protected:
|
|
|
|
//! Forbidden. Manage with the Ptr<> template.
|
|
inline ~NodeString() {}
|
|
|
|
//!
|
|
EType Type = EType::None;
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|