Files
UnrealEngineUWP/Engine/Source/Runtime/InteractiveToolsFramework/Private/ToolTargets/ToolTarget.cpp

21 lines
503 B
C++
Raw Normal View History

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ToolTargets/ToolTarget.h"
bool FToolTargetTypeRequirements::AreSatisfiedBy(UClass* Class) const
{
// we have to support all the required interfaces
for (const UClass* Interface : Interfaces)
{
if (!Class->ImplementsInterface(Interface))
{
return false;
}
}
return true;
}
bool FToolTargetTypeRequirements::AreSatisfiedBy(UToolTarget* ToolTarget) const
{
return !ToolTarget ? false : AreSatisfiedBy(ToolTarget->GetClass());
}