Files
alexei lebedev 2815323fbc [mutable] Moved the Mutable plugin out of Experimental status into Beta.
#jira UE-223488
#rb jordi.rovira
#tests Editor
#rnx

#virtualized

[CL 36035608 by alexei lebedev in ue5-main branch]
2024-09-05 07:16:19 -04:00

67 lines
1.9 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Misc/AssertionMacros.h"
#include "MuR/Ptr.h"
#include "MuR/RefCounted.h"
#include "MuT/Node.h"
#include "MuT/NodeBool.h"
#include "MuT/NodeBoolPrivate.h"
#include "MuT/NodePrivate.h"
#include "MuT/NodeRange.h"
namespace mu
{
//---------------------------------------------------------------------------------------------
// Static initialisation
//---------------------------------------------------------------------------------------------
FNodeType NodeBoolParameter::Private::s_type = FNodeType(Node::EType::BoolParameter, NodeBool::GetStaticType() );
//---------------------------------------------------------------------------------------------
//!
//---------------------------------------------------------------------------------------------
MUTABLE_IMPLEMENT_NODE( NodeBoolParameter );
//---------------------------------------------------------------------------------------------
// Own Interface
//---------------------------------------------------------------------------------------------
void NodeBoolParameter::SetName( const FString& strName )
{
m_pD->m_name = strName;
}
//---------------------------------------------------------------------------------------------
void NodeBoolParameter::SetDefaultValue( bool v )
{
m_pD->m_defaultValue = v;
}
//---------------------------------------------------------------------------------------------
void NodeBoolParameter::SetRangeCount( int i )
{
check(i>=0);
m_pD->m_ranges.SetNum(i);
}
//---------------------------------------------------------------------------------------------
void NodeBoolParameter::SetRange( int i, NodeRangePtr pRange )
{
check( i>=0 && i<int(m_pD->m_ranges.Num()) );
if ( i>=0 && i<int(m_pD->m_ranges.Num()) )
{
m_pD->m_ranges[i] = pRange;
}
}
}