You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
32 lines
646 B
C
32 lines
646 B
C
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.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;
|
||
|
|
}
|
||
|
|
};
|