EM_Task/CoreUObject/Public/Serialization/DuplicatedObject.h

43 lines
764 B
C
Raw Normal View History

2026-02-13 16:18:33 +08:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
/**
* Information about a duplicated object
* For use with a dense object annotation
*/
struct FDuplicatedObject
{
/** The duplicated object */
UObject* DuplicatedObject;
FDuplicatedObject()
: DuplicatedObject(NULL)
{
}
FDuplicatedObject(UObject* InDuplicatedObject)
: DuplicatedObject(InDuplicatedObject)
{
}
/**
* @return true if this is the default annotation and holds no information about a duplicated object
*/
FORCEINLINE bool IsDefault()
{
return DuplicatedObject == NULL;
}
};
template <>
struct TIsPODType<FDuplicatedObject>
{
enum
{
Value = true
};
};