You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Source=CL 4772220 in //UE4/Main/... Acknowledger=joe.conley (Thu Jan 24 2019 00:26:59 GMT+0000 (Coordinated Universal Time)) ShelfCl=4791207 Target=Dev-VR Merge conflict: /src/ROBOMERGE_DEVVR_Dev_VR/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeapController/Private/MagicLeapController.cpp - merging //UE4/Main/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeapController/Private/MagicLeapController.cpp#5 #rb Ryan.Vance [CL 4792243 by Joe Conley in Dev-VR branch]
116 lines
2.3 KiB
C++
116 lines
2.3 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "EnumOnlyHeader.h"
|
|
#include "TestObjectSerializers.generated.h"
|
|
|
|
UCLASS()
|
|
class UTestObject_NoSerializers : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
};
|
|
|
|
UCLASS()
|
|
class UTestObject_FArchive : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
virtual void Serialize(FArchive& Ar) override;
|
|
};
|
|
|
|
UCLASS()
|
|
class UTestObject_FStructuredArchive : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
virtual void Serialize(FStructuredArchive::FSlot Slot) override;
|
|
};
|
|
|
|
UCLASS()
|
|
class UTestObject_BothArchives : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
virtual void Serialize(FArchive& Ar) override;
|
|
virtual void Serialize(FStructuredArchive::FSlot Slot) override;
|
|
};
|
|
|
|
UCLASS()
|
|
class UTestObject_ArchiveInEditorOnlyDataDefine : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
#if WITH_EDITORONLY_DATA
|
|
virtual void Serialize(FArchive& Ar) override;
|
|
#endif
|
|
};
|
|
|
|
#if 0
|
|
// Should fail - no Serialize functions inside WITH_EDITOR
|
|
UCLASS()
|
|
class UTestObject_ArchiveInWithEditor : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
#if WITH_EDITOR
|
|
virtual void Serialize(FArchive& Ar) override;
|
|
#endif
|
|
};
|
|
#endif
|
|
|
|
#if 0
|
|
// Should fail - no Serialize functions inside WITH_EDITOR
|
|
UCLASS()
|
|
class UTestObject_StructuredArchiveInWithEditor : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
#if WITH_EDITOR
|
|
virtual void Serialize(FStructuredArchive::FSlot Slot) override;
|
|
#endif
|
|
};
|
|
#endif
|
|
|
|
#if 0
|
|
#define SOME_RANDOM_DEFINE 1
|
|
// Should fail - no Serialize functions inside arbitrary preprocessor blocks
|
|
UCLASS()
|
|
class UTestObject_ArchiveInPreprocessorBlock : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
#if SOME_RANDOM_DEFINE
|
|
void Serialize(FArchive& Ar) override;
|
|
#endif
|
|
};
|
|
#undef SOME_RANDOM_DEFINE
|
|
#endif
|
|
|
|
#if 0
|
|
#define SOME_RANDOM_DEFINE 1
|
|
// Should fail - no Serialize functions inside arbitrary preprocessor blocks
|
|
UCLASS()
|
|
class UTestObject_StructuredArchiveInPreprocessorBlock : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
#if SOME_RANDOM_DEFINE
|
|
void Serialize(FStructuredArchive::FSlot Slot) override;
|
|
#endif
|
|
};
|
|
#undef SOME_RANDOM_DEFINE
|
|
#endif
|
|
|
|
#if 0
|
|
#define SOME_RANDOM_DEFINE 1
|
|
// Should fail - no uproperties inside arbitrary preprocessor blocks
|
|
UCLASS()
|
|
class UTestObject_UPropertyInPreprocessorBlock : public UObject
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
#if SOME_RANDOM_DEFINE
|
|
UPROPERTY()
|
|
uint32 TestProperty;
|
|
#endif
|
|
};
|
|
#undef SOME_RANDOM_DEFINE
|
|
#endif
|