Files
UnrealEngineUWP/Engine/Source/Editor/PropertyEditor/Private/PropertyRestriction.cpp

26 lines
480 B
C++
Raw Normal View History

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "PropertyEditorPrivatePCH.h"
#include "PropertyRestriction.h"
FText FPropertyRestriction::GetReason()const
{
return Reason;
}
bool FPropertyRestriction::IsValueRestricted(const FString& InValue)const
{
for( int i = 0; i < Values.Num(); ++i )
{
if( InValue == Values[i] )
{
return true;
}
}
return false;
}
void FPropertyRestriction::AddValue(const FString& InValue)
{
Values.Add(InValue);
}