You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UETOOL-3823 #rb brooke.hubert #preflight 6109d1e9b4288d0001acb7ef [CL 17055606 by michael balzer in ue5-main branch]
21 lines
503 B
C++
21 lines
503 B
C++
// 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());
|
|
} |