Files
UnrealEngineUWP/Engine/Source/Editor/PropertyEditor/Private/PropertyRestriction.cpp
2014-03-14 14:13:41 -04:00

26 lines
480 B
C++

// Copyright 1998-2014 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);
}