KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UConfigLibrary 클래스 참조

GConfig 래퍼 라이브러리 더 자세히 ...

#include <UConfigLibrary.h>

+ UConfigLibrary에 대한 상속 다이어그램 :
+ UConfigLibrary에 대한 협력 다이어그램:

정적 Public 멤버 함수

static void DeleteAll (bool bAutoSave=true)
 모든 전역 설정 삭제 (주의!)
 
static void DeleteAllUserData (int32 UserId, bool bAutoSave=true)
 특정 유저의 모든 설정 삭제
 
static void DeleteKey (const FString &Key, bool bAutoSave=true)
 전역 키 삭제
 
static void DeleteUserKey (int32 UserId, const FString &Key, bool bAutoSave=true)
 유저별 키 삭제
 
static bool GetBool (const FString &Key, bool bDefaultValue=false)
 전역 불린 설정 읽기
 
static float GetFloat (const FString &Key, float DefaultValue=0.0f)
 전역 실수 설정 읽기
 
static int32 GetInt (const FString &Key, int32 DefaultValue=0)
 전역 정수 설정 읽기
 
static FString GetString (const FString &Key, const FString &DefaultValue=TEXT(""))
 전역 문자열 설정 읽기
 
static bool GetUserBool (int32 UserId, const FString &Key, bool bDefaultValue=false)
 유저별 불린 설정 읽기
 
static float GetUserFloat (int32 UserId, const FString &Key, float DefaultValue=0.0f)
 유저별 실수 설정 읽기
 
static int32 GetUserInt (int32 UserId, const FString &Key, int32 DefaultValue=0)
 유저별 정수 설정 읽기
 
static FString GetUserJson (int32 UserId, const FString &Key, const FString &DefaultJson=TEXT("[]"))
 유저별 JSON 데이터 읽기
 
static FString GetUserString (int32 UserId, const FString &Key, const FString &DefaultValue=TEXT(""))
 유저별 문자열 설정 읽기
 
static bool HasKey (const FString &Key)
 전역 키 존재 여부 확인
 
static bool HasUserKey (int32 UserId, const FString &Key)
 유저별 키 존재 여부 확인
 
static void Save ()
 대기 중인 모든 변경사항을 디스크에 저장
 
static void SetBool (const FString &Key, bool bValue, bool bAutoSave=true)
 전역 불린 설정 저장
 
static void SetFloat (const FString &Key, float Value, bool bAutoSave=true)
 전역 실수 설정 저장
 
static void SetInt (const FString &Key, int32 Value, bool bAutoSave=true)
 전역 정수 설정 저장
 
static void SetString (const FString &Key, const FString &Value, bool bAutoSave=true)
 전역 문자열 설정 저장
 
static void SetUserBool (int32 UserId, const FString &Key, bool bValue, bool bAutoSave=true)
 유저별 불린 설정 저장
 
static void SetUserFloat (int32 UserId, const FString &Key, float Value, bool bAutoSave=true)
 유저별 실수 설정 저장
 
static void SetUserInt (int32 UserId, const FString &Key, int32 Value, bool bAutoSave=true)
 유저별 정수 설정 저장
 
static void SetUserJson (int32 UserId, const FString &Key, const FString &JsonData, bool bAutoSave=true)
 유저별 JSON 데이터 저장
 
static void SetUserString (int32 UserId, const FString &Key, const FString &Value, bool bAutoSave=true)
 유저별 문자열 설정 저장
 

정적 Private 멤버 함수

static FString GetGlobalSection ()
 전역 설정 Config Section 이름 반환
 
static FString GetUserSection ()
 유저별 설정 Config Section 이름 반환
 
static FString MakeUserKey (int32 UserId, const FString &Key)
 유저별 키 생성 (UserId 접두사 추가)
 

상세한 설명

GConfig 래퍼 라이브러리

간단한 Get/Set 인터페이스로 설정을 저장/로드합니다.

특징:

  • Global Settings: 전역 설정 (볼륨, 그래픽 등)
  • User-Specific Settings: 유저별 설정 (튜토리얼 완료, 진행 상황 등)
  • 자동 저장: bAutoSave=true일 때 즉시 디스크에 기록
  • Blueprint 지원: 모든 함수 Blueprint에서 사용 가능

UConfigLibrary.h 파일의 38 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ DeleteAll()

void UConfigLibrary::DeleteAll ( bool  bAutoSave = true)
static

모든 전역 설정 삭제 (주의!)

매개변수
bAutoSavetrue일 경우 즉시 디스크에 반영 (기본값: true)
경고
모든 전역 설정이 삭제됩니다. 신중하게 사용하세요.

UConfigLibrary.cpp 파일의 347 번째 라인에서 정의되었습니다.

348{
349 GConfig->EmptySection(
351 GGameUserSettingsIni
352 );
353
354 if (bAutoSave)
355 {
356 Save();
357 }
358}
static void Save()
대기 중인 모든 변경사항을 디스크에 저장
constexpr const TCHAR * GlobalSection

다음을 참조함 : ConfigLibraryConstants::GlobalSection, Save().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ DeleteAllUserData()

void UConfigLibrary::DeleteAllUserData ( int32  UserId,
bool  bAutoSave = true 
)
static

특정 유저의 모든 설정 삭제

매개변수
UserId사용자 ID
bAutoSavetrue일 경우 즉시 디스크에 반영 (기본값: true)
경고
해당 유저의 모든 설정이 삭제됩니다. 신중하게 사용하세요.

UConfigLibrary.cpp 파일의 360 번째 라인에서 정의되었습니다.

361{
362 if (UserId <= 0)
363 {
364 return;
365 }
366
367 // 해당 UserId로 시작하는 모든 키 찾기
368 TArray<FString> AllKeys;
369 GConfig->GetSection(
371 AllKeys,
372 GGameUserSettingsIni
373 );
374
375 const FString UserPrefix = FString::Printf(TEXT("User_%d_"), UserId);
376 for (const FString& KeyValue : AllKeys)
377 {
378 // "Key=Value" 형식에서 Key 부분만 추출
379 FString Key;
380 FString Value;
381 if (KeyValue.Split(TEXT("="), &Key, &Value))
382 {
383 if (Key.StartsWith(UserPrefix))
384 {
385 GConfig->RemoveKey(
387 *Key,
388 GGameUserSettingsIni
389 );
390 }
391 }
392 }
393
394 if (bAutoSave)
395 {
396 Save();
397 }
398}
constexpr const TCHAR * UserSection

다음을 참조함 : Save(), ConfigLibraryConstants::UserSection.

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ DeleteKey()

void UConfigLibrary::DeleteKey ( const FString &  Key,
bool  bAutoSave = true 
)
static

전역 키 삭제

매개변수
Key삭제할 키
bAutoSavetrue일 경우 즉시 디스크에 반영 (기본값: true)

UConfigLibrary.cpp 파일의 313 번째 라인에서 정의되었습니다.

314{
315 GConfig->RemoveKey(
317 *Key,
318 GGameUserSettingsIni
319 );
320
321 if (bAutoSave)
322 {
323 Save();
324 }
325}

다음을 참조함 : ConfigLibraryConstants::GlobalSection, Save().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ DeleteUserKey()

void UConfigLibrary::DeleteUserKey ( int32  UserId,
const FString &  Key,
bool  bAutoSave = true 
)
static

유저별 키 삭제

매개변수
UserId사용자 ID
Key삭제할 키
bAutoSavetrue일 경우 즉시 디스크에 반영 (기본값: true)

UConfigLibrary.cpp 파일의 327 번째 라인에서 정의되었습니다.

328{
329 if (UserId <= 0)
330 {
331 return;
332 }
333
334 const FString UserKey = MakeUserKey(UserId, Key);
335 GConfig->RemoveKey(
337 *UserKey,
338 GGameUserSettingsIni
339 );
340
341 if (bAutoSave)
342 {
343 Save();
344 }
345}
static FString MakeUserKey(int32 UserId, const FString &Key)
유저별 키 생성 (UserId 접두사 추가)

다음을 참조함 : MakeUserKey(), Save(), ConfigLibraryConstants::UserSection.

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ GetBool()

bool UConfigLibrary::GetBool ( const FString &  Key,
bool  bDefaultValue = false 
)
static

전역 불린 설정 읽기

매개변수
Key설정 키 (예: "ShowFPS")
bDefaultValue키가 없을 때 반환할 기본값
반환값
저장된 불린 값 또는 기본값
주의
내부적으로 int로 저장됨 (0=false, 1=true)

UConfigLibrary.cpp 파일의 113 번째 라인에서 정의되었습니다.

114{
115 return GetInt(Key, bDefaultValue ? 1 : 0) != 0;
116}
static int32 GetInt(const FString &Key, int32 DefaultValue=0)
전역 정수 설정 읽기

다음을 참조함 : GetInt().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ GetFloat()

float UConfigLibrary::GetFloat ( const FString &  Key,
float  DefaultValue = 0.0f 
)
static

전역 실수 설정 읽기

매개변수
Key설정 키 (예: "MusicVolume")
DefaultValue키가 없을 때 반환할 기본값
반환값
저장된 실수 값 또는 기본값

UConfigLibrary.cpp 파일의 51 번째 라인에서 정의되었습니다.

52{
53 float Result = DefaultValue;
54 GConfig->GetFloat(
56 *Key,
57 Result,
58 GGameUserSettingsIni
59 );
60 return Result;
61}

다음을 참조함 : ConfigLibraryConstants::GlobalSection.

◆ GetGlobalSection()

FString UConfigLibrary::GetGlobalSection ( )
staticprivate

전역 설정 Config Section 이름 반환

반환값
"/Script/CoffeeLibrary.Config"

UConfigLibrary.cpp 파일의 409 번째 라인에서 정의되었습니다.

다음을 참조함 : ConfigLibraryConstants::GlobalSection.

◆ GetInt()

int32 UConfigLibrary::GetInt ( const FString &  Key,
int32  DefaultValue = 0 
)
static

전역 정수 설정 읽기

매개변수
Key설정 키 (예: "MasterVolume")
DefaultValue키가 없을 때 반환할 기본값
반환값
저장된 정수 값 또는 기본값

UConfigLibrary.cpp 파일의 20 번째 라인에서 정의되었습니다.

21{
22 int32 Result = DefaultValue;
23 GConfig->GetInt(
25 *Key,
26 Result,
27 GGameUserSettingsIni
28 );
29 return Result;
30}

다음을 참조함 : ConfigLibraryConstants::GlobalSection.

다음에 의해서 참조됨 : GetBool().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetString()

FString UConfigLibrary::GetString ( const FString &  Key,
const FString &  DefaultValue = TEXT("") 
)
static

전역 문자열 설정 읽기

매개변수
Key설정 키 (예: "Language")
DefaultValue키가 없을 때 반환할 기본값
반환값
저장된 문자열 또는 기본값

UConfigLibrary.cpp 파일의 82 번째 라인에서 정의되었습니다.

83{
84 FString Result = DefaultValue;
85 GConfig->GetString(
87 *Key,
88 Result,
89 GGameUserSettingsIni
90 );
91 return Result;
92}

다음을 참조함 : ConfigLibraryConstants::GlobalSection.

◆ GetUserBool()

bool UConfigLibrary::GetUserBool ( int32  UserId,
const FString &  Key,
bool  bDefaultValue = false 
)
static

유저별 불린 설정 읽기

매개변수
UserId사용자 ID
Key설정 키 (예: "TutorialCompleted")
bDefaultValue키가 없을 때 반환할 기본값
반환값
저장된 불린 값 또는 기본값
주의
내부적으로 int로 저장됨 (0=false, 1=true)

UConfigLibrary.cpp 파일의 256 번째 라인에서 정의되었습니다.

257{
258 return GetUserInt(UserId, Key, bDefaultValue ? 1 : 0) != 0;
259}
static int32 GetUserInt(int32 UserId, const FString &Key, int32 DefaultValue=0)
유저별 정수 설정 읽기

다음을 참조함 : GetUserInt().

다음에 의해서 참조됨 : APlayerControl::ShouldSkipTutorial().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetUserFloat()

float UConfigLibrary::GetUserFloat ( int32  UserId,
const FString &  Key,
float  DefaultValue = 0.0f 
)
static

유저별 실수 설정 읽기

매개변수
UserId사용자 ID
Key설정 키
DefaultValue키가 없을 때 반환할 기본값
반환값
저장된 실수 값 또는 기본값

UConfigLibrary.cpp 파일의 170 번째 라인에서 정의되었습니다.

171{
172 if (UserId <= 0)
173 {
174 return DefaultValue;
175 }
176
177 const FString UserKey = MakeUserKey(UserId, Key);
178 float Result = DefaultValue;
179 GConfig->GetFloat(
181 *UserKey,
182 Result,
183 GGameUserSettingsIni
184 );
185 return Result;
186}

다음을 참조함 : MakeUserKey(), ConfigLibraryConstants::UserSection.

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ GetUserInt()

int32 UConfigLibrary::GetUserInt ( int32  UserId,
const FString &  Key,
int32  DefaultValue = 0 
)
static

유저별 정수 설정 읽기

매개변수
UserId사용자 ID (ULingoGameHelper::GetUserId()로 획득)
Key설정 키 (예: "TutorialStep")
DefaultValue키가 없을 때 반환할 기본값
반환값
저장된 정수 값 또는 기본값

UConfigLibrary.cpp 파일의 127 번째 라인에서 정의되었습니다.

128{
129 if (UserId <= 0)
130 {
131 return DefaultValue;
132 }
133
134 const FString UserKey = MakeUserKey(UserId, Key);
135 int32 Result = DefaultValue;
136 GConfig->GetInt(
138 *UserKey,
139 Result,
140 GGameUserSettingsIni
141 );
142 return Result;
143}

다음을 참조함 : MakeUserKey(), ConfigLibraryConstants::UserSection.

다음에 의해서 참조됨 : GetUserBool(), UPopup_DailyResult::OnClickConfirm(), UDailyKioskWidget::UpdateBestScore().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetUserJson()

FString UConfigLibrary::GetUserJson ( int32  UserId,
const FString &  Key,
const FString &  DefaultJson = TEXT("[]") 
)
static

유저별 JSON 데이터 읽기

매개변수
UserId사용자 ID
Key설정 키
DefaultJson키가 없을 때 반환할 기본 JSON (빈 배열: "[]")
반환값
저장된 JSON 문자열

FJsonObjectConverter로 역직렬화하여 사용

UConfigLibrary.cpp 파일의 276 번째 라인에서 정의되었습니다.

277{
278 return GetUserString(UserId, Key, DefaultJson);
279}
static FString GetUserString(int32 UserId, const FString &Key, const FString &DefaultValue=TEXT(""))
유저별 문자열 설정 읽기

다음을 참조함 : GetUserString().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ GetUserSection()

FString UConfigLibrary::GetUserSection ( )
staticprivate

유저별 설정 Config Section 이름 반환

반환값
"/Script/CoffeeLibrary.UserConfig"

UConfigLibrary.cpp 파일의 414 번째 라인에서 정의되었습니다.

415{
417}

다음을 참조함 : ConfigLibraryConstants::UserSection.

◆ GetUserString()

FString UConfigLibrary::GetUserString ( int32  UserId,
const FString &  Key,
const FString &  DefaultValue = TEXT("") 
)
static

유저별 문자열 설정 읽기

매개변수
UserId사용자 ID
Key설정 키 (예: "InterviewSkipDate")
DefaultValue키가 없을 때 반환할 기본값
반환값
저장된 문자열 또는 기본값

UConfigLibrary.cpp 파일의 213 번째 라인에서 정의되었습니다.

214{
215 if (UserId <= 0)
216 {
217 return DefaultValue;
218 }
219
220 const FString UserKey = MakeUserKey(UserId, Key);
221 FString Result = DefaultValue;
222 GConfig->GetString(
224 *UserKey,
225 Result,
226 GGameUserSettingsIni
227 );
228 return Result;
229}

다음을 참조함 : MakeUserKey(), ConfigLibraryConstants::UserSection.

다음에 의해서 참조됨 : GetUserJson(), UPopup_InterviewHello::ShouldSkipInterviewToday().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ HasKey()

bool UConfigLibrary::HasKey ( const FString &  Key)
static

전역 키 존재 여부 확인

매개변수
Key확인할 키
반환값
키가 존재하면 true, 없으면 false

UConfigLibrary.cpp 파일의 285 번째 라인에서 정의되었습니다.

286{
287 FString Temp;
288 return GConfig->GetString(
290 *Key,
291 Temp,
292 GGameUserSettingsIni
293 );
294}

다음을 참조함 : ConfigLibraryConstants::GlobalSection.

◆ HasUserKey()

bool UConfigLibrary::HasUserKey ( int32  UserId,
const FString &  Key 
)
static

유저별 키 존재 여부 확인

매개변수
UserId사용자 ID
Key확인할 키
반환값
키가 존재하면 true, 없으면 false

UConfigLibrary.cpp 파일의 296 번째 라인에서 정의되었습니다.

297{
298 if (UserId <= 0)
299 {
300 return false;
301 }
302
303 const FString UserKey = MakeUserKey(UserId, Key);
304 FString Temp;
305 return GConfig->GetString(
307 *UserKey,
308 Temp,
309 GGameUserSettingsIni
310 );
311}

다음을 참조함 : MakeUserKey(), ConfigLibraryConstants::UserSection.

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ MakeUserKey()

FString UConfigLibrary::MakeUserKey ( int32  UserId,
const FString &  Key 
)
staticprivate

유저별 키 생성 (UserId 접두사 추가)

매개변수
UserId사용자 ID
Key원본 키
반환값
"User_{UserId}_{Key}" 형식의 키

UConfigLibrary.cpp 파일의 419 번째 라인에서 정의되었습니다.

420{
421 return FString::Printf(TEXT("User_%d_%s"), UserId, *Key);
422}

다음에 의해서 참조됨 : DeleteUserKey(), GetUserFloat(), GetUserInt(), GetUserString(), HasUserKey(), SetUserFloat(), SetUserInt(), SetUserString().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ Save()

void UConfigLibrary::Save ( )
static

대기 중인 모든 변경사항을 디스크에 저장

bAutoSave=false로 저장한 경우, 이 함수로 수동 저장

UConfigLibrary.cpp 파일의 400 번째 라인에서 정의되었습니다.

401{
402 GConfig->Flush(false, GGameUserSettingsIni);
403}

다음에 의해서 참조됨 : DeleteAll(), DeleteAllUserData(), DeleteKey(), DeleteUserKey(), SetFloat(), SetInt(), SetString(), SetUserFloat(), SetUserInt(), SetUserString().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetBool()

void UConfigLibrary::SetBool ( const FString &  Key,
bool  bValue,
bool  bAutoSave = true 
)
static

전역 불린 설정 저장

매개변수
Key설정 키
bValue저장할 값
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)
주의
내부적으로 int로 저장됨 (0=false, 1=true)

UConfigLibrary.cpp 파일의 118 번째 라인에서 정의되었습니다.

119{
120 SetInt(Key, bValue ? 1 : 0, bAutoSave);
121}
static void SetInt(const FString &Key, int32 Value, bool bAutoSave=true)
전역 정수 설정 저장

다음을 참조함 : SetInt().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ SetFloat()

void UConfigLibrary::SetFloat ( const FString &  Key,
float  Value,
bool  bAutoSave = true 
)
static

전역 실수 설정 저장

매개변수
Key설정 키
Value저장할 값
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)

UConfigLibrary.cpp 파일의 63 번째 라인에서 정의되었습니다.

64{
65 GConfig->SetFloat(
67 *Key,
68 Value,
69 GGameUserSettingsIni
70 );
71
72 if (bAutoSave)
73 {
74 Save();
75 }
76}

다음을 참조함 : ConfigLibraryConstants::GlobalSection, Save().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ SetInt()

void UConfigLibrary::SetInt ( const FString &  Key,
int32  Value,
bool  bAutoSave = true 
)
static

전역 정수 설정 저장

매개변수
Key설정 키
Value저장할 값
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)

UConfigLibrary.cpp 파일의 32 번째 라인에서 정의되었습니다.

33{
34 GConfig->SetInt(
36 *Key,
37 Value,
38 GGameUserSettingsIni
39 );
40
41 if (bAutoSave)
42 {
43 Save();
44 }
45}

다음을 참조함 : ConfigLibraryConstants::GlobalSection, Save().

다음에 의해서 참조됨 : SetBool().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetString()

void UConfigLibrary::SetString ( const FString &  Key,
const FString &  Value,
bool  bAutoSave = true 
)
static

전역 문자열 설정 저장

매개변수
Key설정 키
Value저장할 값
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)

UConfigLibrary.cpp 파일의 94 번째 라인에서 정의되었습니다.

95{
96 GConfig->SetString(
98 *Key,
99 *Value,
100 GGameUserSettingsIni
101 );
102
103 if (bAutoSave)
104 {
105 Save();
106 }
107}

다음을 참조함 : ConfigLibraryConstants::GlobalSection, Save().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ SetUserBool()

void UConfigLibrary::SetUserBool ( int32  UserId,
const FString &  Key,
bool  bValue,
bool  bAutoSave = true 
)
static

유저별 불린 설정 저장

매개변수
UserId사용자 ID
Key설정 키
bValue저장할 값
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)
주의
내부적으로 int로 저장됨 (0=false, 1=true)

UConfigLibrary.cpp 파일의 261 번째 라인에서 정의되었습니다.

262{
263 SetUserInt(UserId, Key, bValue ? 1 : 0, bAutoSave);
264}
static void SetUserInt(int32 UserId, const FString &Key, int32 Value, bool bAutoSave=true)
유저별 정수 설정 저장

다음을 참조함 : SetUserInt().

다음에 의해서 참조됨 : UPopup_AskTutorial::OnClickSkip(), APlayerControl::OnTutorialCompleted().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetUserFloat()

void UConfigLibrary::SetUserFloat ( int32  UserId,
const FString &  Key,
float  Value,
bool  bAutoSave = true 
)
static

유저별 실수 설정 저장

매개변수
UserId사용자 ID
Key설정 키
Value저장할 값
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)

UConfigLibrary.cpp 파일의 188 번째 라인에서 정의되었습니다.

189{
190 if (UserId <= 0)
191 {
192 return;
193 }
194
195 const FString UserKey = MakeUserKey(UserId, Key);
196 GConfig->SetFloat(
198 *UserKey,
199 Value,
200 GGameUserSettingsIni
201 );
202
203 if (bAutoSave)
204 {
205 Save();
206 }
207}

다음을 참조함 : MakeUserKey(), Save(), ConfigLibraryConstants::UserSection.

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ SetUserInt()

void UConfigLibrary::SetUserInt ( int32  UserId,
const FString &  Key,
int32  Value,
bool  bAutoSave = true 
)
static

유저별 정수 설정 저장

매개변수
UserId사용자 ID
Key설정 키
Value저장할 값
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)

UConfigLibrary.cpp 파일의 145 번째 라인에서 정의되었습니다.

146{
147 if (UserId <= 0)
148 {
149 return;
150 }
151
152 const FString UserKey = MakeUserKey(UserId, Key);
153 GConfig->SetInt(
155 *UserKey,
156 Value,
157 GGameUserSettingsIni
158 );
159
160 if (bAutoSave)
161 {
162 Save();
163 }
164}

다음을 참조함 : MakeUserKey(), Save(), ConfigLibraryConstants::UserSection.

다음에 의해서 참조됨 : UPopup_DailyResult::OnClickConfirm(), SetUserBool().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetUserJson()

void UConfigLibrary::SetUserJson ( int32  UserId,
const FString &  Key,
const FString &  JsonData,
bool  bAutoSave = true 
)
static

유저별 JSON 데이터 저장

매개변수
UserId사용자 ID
Key설정 키 (예: "ChatHistory")
JsonDataJSON 문자열
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)

구조체 배열을 FJsonObjectConverter로 직렬화한 후 저장

UConfigLibrary.cpp 파일의 270 번째 라인에서 정의되었습니다.

271{
272 // JSON은 내부적으로 String으로 저장
273 SetUserString(UserId, Key, JsonData, bAutoSave);
274}
static void SetUserString(int32 UserId, const FString &Key, const FString &Value, bool bAutoSave=true)
유저별 문자열 설정 저장

다음을 참조함 : SetUserString().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ SetUserString()

void UConfigLibrary::SetUserString ( int32  UserId,
const FString &  Key,
const FString &  Value,
bool  bAutoSave = true 
)
static

유저별 문자열 설정 저장

매개변수
UserId사용자 ID
Key설정 키
Value저장할 값
bAutoSavetrue일 경우 즉시 디스크에 저장 (기본값: true)

UConfigLibrary.cpp 파일의 231 번째 라인에서 정의되었습니다.

232{
233 if (UserId <= 0)
234 {
235 return;
236 }
237
238 const FString UserKey = MakeUserKey(UserId, Key);
239 GConfig->SetString(
241 *UserKey,
242 *Value,
243 GGameUserSettingsIni
244 );
245
246 if (bAutoSave)
247 {
248 Save();
249 }
250}

다음을 참조함 : MakeUserKey(), Save(), ConfigLibraryConstants::UserSection.

다음에 의해서 참조됨 : UPopup_InterviewHello::OnResponseInterviewAnswer(), SetUserJson().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: