You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
26 lines
480 B
C++
26 lines
480 B
C++
// 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);
|
|
} |