51 UFUNCTION(BlueprintPure, Category =
"Config|Global")
52 static int32 GetInt(
const FString& Key, int32 DefaultValue = 0);
58 UFUNCTION(BlueprintCallable, Category =
"Config|Global")
59 static void SetInt(
const FString& Key, int32 Value,
bool bAutoSave =
true);
69 UFUNCTION(BlueprintPure, Category =
"Config|Global")
70 static float GetFloat(
const FString& Key,
float DefaultValue = 0.0f);
76 UFUNCTION(BlueprintCallable, Category =
"Config|Global")
77 static void SetFloat(
const FString& Key,
float Value,
bool bAutoSave =
true);
87 UFUNCTION(BlueprintPure, Category =
"Config|Global")
88 static FString GetString(
const FString& Key,
const FString& DefaultValue = TEXT(
""));
94 UFUNCTION(BlueprintCallable, Category =
"Config|Global")
95 static void SetString(
const FString& Key,
const FString& Value,
bool bAutoSave =
true);
106 UFUNCTION(BlueprintPure, Category =
"Config|Global")
107 static bool GetBool(
const FString& Key,
bool bDefaultValue =
false);
114 UFUNCTION(BlueprintCallable, Category =
"Config|Global")
115 static void SetBool(
const FString& Key,
bool bValue,
bool bAutoSave =
true);
126 UFUNCTION(BlueprintPure, Category =
"Config|User")
127 static int32 GetUserInt(int32 UserId,
const FString& Key, int32 DefaultValue = 0);
134 UFUNCTION(BlueprintCallable, Category =
"Config|User")
135 static void SetUserInt(int32 UserId,
const FString& Key, int32 Value,
bool bAutoSave =
true);
146 UFUNCTION(BlueprintPure, Category =
"Config|User")
147 static float GetUserFloat(int32 UserId,
const FString& Key,
float DefaultValue = 0.0f);
154 UFUNCTION(BlueprintCallable, Category =
"Config|User")
155 static void SetUserFloat(int32 UserId,
const FString& Key,
float Value,
bool bAutoSave =
true);
166 UFUNCTION(BlueprintPure, Category =
"Config|User")
167 static FString GetUserString(int32 UserId,
const FString& Key,
const FString& DefaultValue = TEXT(
""));
174 UFUNCTION(BlueprintCallable, Category =
"Config|User")
175 static void SetUserString(int32 UserId,
const FString& Key,
const FString& Value,
bool bAutoSave =
true);
187 UFUNCTION(BlueprintPure, Category =
"Config|User")
188 static bool GetUserBool(int32 UserId,
const FString& Key,
bool bDefaultValue =
false);
196 UFUNCTION(BlueprintCallable, Category =
"Config|User")
197 static void SetUserBool(int32 UserId,
const FString& Key,
bool bValue,
bool bAutoSave =
true);
209 UFUNCTION(BlueprintCallable, Category =
"Config|User|JSON")
210 static void SetUserJson(int32 UserId,
const FString& Key,
const FString& JsonData,
bool bAutoSave =
true);
218 UFUNCTION(BlueprintPure, Category =
"Config|User|JSON")
219 static FString GetUserJson(int32 UserId,
const FString& Key,
const FString& DefaultJson = TEXT(
"[]"));
228 UFUNCTION(BlueprintPure, Category =
"Config|Management")
229 static bool HasKey(
const FString& Key);
235 UFUNCTION(BlueprintPure, Category =
"Config|Management")
236 static bool HasUserKey(int32 UserId,
const FString& Key);
241 UFUNCTION(BlueprintCallable, Category =
"Config|Management")
242 static void DeleteKey(
const FString& Key,
bool bAutoSave =
true);
248 UFUNCTION(BlueprintCallable, Category =
"Config|Management")
249 static void DeleteUserKey(int32 UserId,
const FString& Key,
bool bAutoSave =
true);
254 UFUNCTION(BlueprintCallable, Category =
"Config|Management")
255 static void DeleteAll(
bool bAutoSave =
true);
261 UFUNCTION(BlueprintCallable, Category =
"Config|Management")
262 static void DeleteAllUserData(int32 UserId,
bool bAutoSave =
true);
266 UFUNCTION(BlueprintCallable, Category =
"Config|Management")
276 static FString GetGlobalSection();
280 static FString GetUserSection();
286 static FString MakeUserKey(int32 UserId,
const FString& Key);