5#include "CoreMinimal.h"
6#include "LiveConfigPropertyName.h"
7#include "Profiles/LiveConfigProfile.h"
8#include "LiveConfigTypes.generated.h"
10LIVECONFIG_API DECLARE_LOG_CATEGORY_EXTERN(LogLiveConfig, Log, All);
13enum class ELiveConfigSyncMode : uint8
24enum class ELiveConfigPropertyChangeType : uint8
34enum class ELiveConfigPropertyType : uint8
44enum class ELiveConfigSourceType : uint8
61 UPROPERTY(Config, BlueprintReadWrite, EditAnywhere, Category =
"Property")
64 UPROPERTY(Config, BlueprintReadWrite, EditAnywhere, Category =
"Property")
67 UPROPERTY(Config, BlueprintReadWrite, EditAnywhere, Category =
"Property")
68 ELiveConfigPropertyType PropertyType = ELiveConfigPropertyType::String;
70 UPROPERTY(Config, BlueprintReadWrite, EditAnywhere, Category =
"Property")
73 UPROPERTY(Config, BlueprintReadWrite, EditAnywhere, Category =
"Property")
76 bool IsDeprecated()
const;
90 TMap<FLiveConfigProperty, float> FloatValues;
92 TMap<FLiveConfigProperty, int32> IntValues;
94 TMap<FLiveConfigProperty, FString> StringValues;
96 TMap<FLiveConfigProperty, bool> BoolValues;
104 static void BuildConfig(
const TMap<FLiveConfigProperty, FLiveConfigPropertyDefinition>& PropertyDefinitions,
111 if (
const float* Value = FloatValues.Find(Property))
116 UE_LOG(LogLiveConfig, Warning, TEXT(
"Failed to find float value for property: %s"), *Property.
ToString());
123 if (
const int32* Value = IntValues.Find(Property))
128 UE_LOG(LogLiveConfig, Warning, TEXT(
"Failed to find int32 value for property: %s"), *Property.
ToString());
133inline FString FLiveConfigCache::GetValue<FString>(
const FLiveConfigProperty& Property)
const
135 if (
const FString* Value = StringValues.Find(Property))
140 UE_LOG(LogLiveConfig, Warning, TEXT(
"Failed to find string value for property: %s"), *Property.
ToString());
147 if (
const bool* Value = BoolValues.Find(Property))
152 UE_LOG(LogLiveConfig, Warning, TEXT(
"Failed to find bool value for property: %s"), *Property.
ToString());
Definition LiveConfigTypes.h:86
Definition LiveConfigProfile.h:24
Definition LiveConfigTypes.h:58
Definition LiveConfigPropertyName.h:14
FString ToString() const
Definition LiveConfigPropertyName.h:29