ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
ArticyObjectWithShortId.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 "ArticyObjectWithShortId.generated.h"
9
10UINTERFACE(MinimalAPI, BlueprintType, meta=(CannotImplementInterfaceInBlueprint))
11class UArticyObjectWithShortId : public UArticyObjectWith_Base { GENERATED_BODY() };
12
17{
18 GENERATED_BODY()
19
20public:
21
22 UFUNCTION(BlueprintCallable, Category="ArticyObjectWithShortId")
23 virtual int32& GetShortId()
24 {
25 static const auto& PropName = FName("ShortId");
26 return GetProperty<int32>(PropName);
27 }
28
29 virtual const int32& GetShortId() const
30 {
31 return const_cast<IArticyObjectWithShortId*>(this)->GetShortId();
32 }
33
34 //---------------------------------------------------------------------------//
35
36 UFUNCTION(BlueprintCallable, Category="ArticyObjectWithShortId")
37 virtual int32& SetShortId(UPARAM(ref) const int32& ShortId)
38 {
39 return GetShortId() = ShortId;
40 }
41};
Definition ArticyObjectWithShortId.h:17
Definition ArticyObjectWith_Base.h:27
Definition ArticyObjectWithShortId.h:11
Definition ArticyObjectWith_Base.h:12