Files
UnrealEngineUWP/Engine/Source/Runtime/Serialization/Private/StructSerializationUtilities.h
simon therriault cebbbbf8b3 - Debackout with CIS fix -> Updating MessageBus protocol and CBor serialization backend to support communication between LWC and non LWC endpoints
#rb francis.hurteau, jason.walter
#jira UE-142171
#preflight 62067326ad10bdb30a9f0361
#lockdown alejandro.arango

#ROBOMERGE-AUTHOR: simon.therriault
#ROBOMERGE-SOURCE: CL 18957877 in //UE5/Release-5.0/... via CL 18958785 via CL 18959502
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18959726 by simon therriault in ue5-main branch]
2022-02-11 15:17:57 -05:00

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;
}
};