UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ModularFeature.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "uLang/Common/Common.h" // for uintptr_t
5#include "uLang/Common/Containers/SharedPointer.h" // for CSharedMix
8
9namespace uLang
10{
11
12namespace Private
13{
19 {
20 public:
21 virtual ~IModularFeature() {}
22 virtual int32_t GetPriority() const = 0;
23 };
24}
25
30template<typename FeatureType>
32{
33public:
34 //~ Begin IModularFeature interface
35 virtual int32_t GetPriority() const override { return 0; }
36 //~ End IModularFeature interface
37};
38
39// Required to fully declare your feature class. Intended to be declared inside your
40// class declaration. Defines the feature's name, which is used to generate its UID.
41#define ULANG_FEATURE_ID_DECL(FeatureType) \
42public: \
43 using CFeatureType = FeatureType; \
44 static constexpr const char* FeatureName = #FeatureType; \
45private:
46
47} // namespace uLang
48
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition SharedPointer.h:28
Definition ModularFeature.h:19
virtual ~IModularFeature()
Definition ModularFeature.h:21
virtual int32_t GetPriority() const =0
Definition ModularFeature.h:32
virtual int32_t GetPriority() const override
Definition ModularFeature.h:35
Definition OverriddenPropertySet.cpp:45
Definition VVMEngineEnvironment.h:23