ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
ArticyObjectWithExternalId.h
1//
2// Copyright (c) 2023 articy Software GmbH & Co. KG. All rights reserved.
3//
4
5#pragma once
6
7#include "ArticyObjectWith_Base.h"
8#include "ArticyObjectWithExternalId.generated.h"
9
10UINTERFACE(MinimalAPI, BlueprintType, meta=(CannotImplementInterfaceInBlueprint))
11class UArticyObjectWithExternalId : public UArticyObjectWith_Base { GENERATED_BODY() };
12
17{
18 GENERATED_BODY()
19
20public:
21
22 UFUNCTION(BlueprintCallable, Category="ArticyObjectWithExternalId")
23 virtual FString& GetExternalId()
24 {
25 static const auto& PropName = FName("ExternalId");
26 return GetProperty<FString>(PropName);
27 }
28
29 virtual const FString& GetExternalId() const
30 {
31 return const_cast<IArticyObjectWithExternalId*>(this)->GetExternalId();
32 }
33
34 //---------------------------------------------------------------------------//
35
36 UFUNCTION(BlueprintCallable, Category="ArticyObjectWithExternalId")
37 virtual FString& SetExternalId(UPARAM(ref) const FString& ExternalId)
38 {
39 return GetExternalId() = ExternalId;
40 }
41};
Definition ArticyObjectWithExternalId.h:17
Definition ArticyObjectWith_Base.h:27
Definition ArticyObjectWithExternalId.h:11
Definition ArticyObjectWith_Base.h:12