Files
UnrealEngineUWP/Engine/Source/Runtime/Serialization/Private/StructSerializationUtilities.h
henrik karlsson b5164ac775 Fixes to make modules compile with IWYU. We've added to IWYU toolchain so it compiles "orphaned" headers which does not have a owning cpp file. This identified lots of headers that couldn't be compiled by themselves (or if they were to included first)
Change consist of only forward declaration and additional includes

#preflight 63789c1de30d438849c48188
#rb none

[CL 23218412 by henrik karlsson in ue5-main branch]
2022-11-21 03:22:23 -05:00

32 lines
648 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UObject/Class.h"
namespace StructSerializationUtilities
{
static bool IsLWCType(const UStruct* Type)
{
static TSet<FName> LWCTypes = { NAME_Vector
, NAME_Vector2D
, NAME_Vector4
, NAME_Matrix
, NAME_Plane
, NAME_Quat
, NAME_Rotator
, NAME_Transform
, NAME_Box
, NAME_Box2D
, NAME_BoxSphereBounds
, FName(TEXT("OrientedBox"))};
if (Type)
{
const FName StructName = Type->GetFName();
return LWCTypes.Contains(StructName);
}
return false;
}
};