2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-12-06 19:14:20 -05:00
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
2014-08-12 08:51:25 -04:00
|
|
|
#include "EnumOnlyHeader.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
#include "TestObject.generated.h"
|
|
|
|
|
|
|
|
|
|
UCLASS()
|
|
|
|
|
class UTestObject : public UObject
|
|
|
|
|
{
|
2015-03-17 06:02:26 -04:00
|
|
|
GENERATED_BODY()
|
|
|
|
|
public:
|
|
|
|
|
UTestObject(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable, Category="Random")
|
|
|
|
|
void TestForNullPtrDefaults(UObject* Obj1 = NULL, UObject* Obj2 = nullptr, UObject* Obj3 = 0);
|
|
|
|
|
|
2014-08-08 09:42:56 -04:00
|
|
|
UPROPERTY()
|
|
|
|
|
int32 Cpp11Init = 123;
|
|
|
|
|
|
2014-08-12 08:51:25 -04:00
|
|
|
UPROPERTY()
|
|
|
|
|
ECppEnum EnumProperty;
|
|
|
|
|
|
2015-04-21 10:25:59 -04:00
|
|
|
UPROPERTY()
|
|
|
|
|
TMap<int32, FString> TestMap;
|
|
|
|
|
|
2014-09-29 07:39:15 -04:00
|
|
|
UFUNCTION()
|
|
|
|
|
void CodeGenTestForEnumClasses(ECppEnum Val);
|
|
|
|
|
|
2015-04-22 05:58:59 -04:00
|
|
|
UFUNCTION(Category="Xyz", BlueprintCallable)
|
|
|
|
|
TArray<UClass*> ReturnArrayOfUClassPtrs();
|
|
|
|
|
|
2015-03-30 14:13:41 -04:00
|
|
|
UFUNCTION()
|
|
|
|
|
int32 InlineFunc()
|
|
|
|
|
{
|
|
|
|
|
return FString("Hello").Len();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UFUNCTION()
|
|
|
|
|
int32 InlineFuncWithCppMacros()
|
|
|
|
|
#if CPP
|
|
|
|
|
{
|
|
|
|
|
return FString("Hello").Len();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-04-10 14:19:15 -04:00
|
|
|
UFUNCTION(BlueprintNativeEvent, Category="Game")
|
|
|
|
|
UClass* BrokenReturnTypeForFunction();
|
|
|
|
|
|
2014-09-30 09:10:54 -04:00
|
|
|
#if 0
|
|
|
|
|
UPROPERTY()
|
|
|
|
|
ITestInterface* ShouldGiveAMeaningfulErrorAboutTScriptInterface;
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
#if BLAH
|
2014-05-01 15:24:39 -04:00
|
|
|
UFUNCTION() int x; // This should not compile if UHT parses it, which it shouldn't
|
2014-03-14 14:13:41 -04:00
|
|
|
#elif BLAH2
|
2014-05-01 15:24:39 -04:00
|
|
|
UFUNCTION() int x;
|
2014-03-14 14:13:41 -04:00
|
|
|
#else
|
2014-05-01 15:24:39 -04:00
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#ifndef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH4
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH3
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#ifndef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH4
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#ifndef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH4
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH4
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
2014-03-14 14:13:41 -04:00
|
|
|
#endif
|
|
|
|
|
};
|