#include <UserGameSettings.h>
◆ GetCategoryName()
| virtual FORCEINLINE FName UUserGameSettings::GetCategoryName |
( |
| ) |
const |
|
inlineoverridevirtual |
380 {
381 return TEXT("CK_UE");
382 }
◆ GetMutableSettingOption()
428{
429 FInstancedStruct* SettingStruct =
Settings.Find(SettingType);
430
431 if (SettingStruct == nullptr)
432 {
433 return nullptr;
434 }
435
436 return SettingStruct->GetMutablePtr<T>();
437}
TMap< EUserGameSetting, FInstancedStruct > Settings
Definition UserGameSettings.h:396
◆ GetMutableSettings()
| FORCEINLINE TMap< EUserGameSetting, FInstancedStruct > & UUserGameSettings::GetMutableSettings |
( |
| ) |
|
|
inline |
◆ GetSettingFieldWidgetClass()
template<typename TFieldWidget >
| TSubclassOf< TFieldWidget > UUserGameSettings::GetSettingFieldWidgetClass |
( |
| ) |
const |
441{
442 static_assert(TIsDerivedFrom<TFieldWidget, UUserWidget>::IsDerived, "TFieldWidget은 UUserWidget을 상속해야 합니다.");
443
444 auto Result = Algo::FindByPredicate(
SettingFieldWidgetClass, [](
const TSubclassOf<USettingFieldWidget>& WidgetClass)
445 {
446 return WidgetClass && WidgetClass->IsChildOf(TFieldWidget::StaticClass());
447 });
448
449 if (Result && *Result)
450 {
451 return (*Result).Get();
452 }
453 else
454 {
455 LOG_ERROR(LogCK,
"위젯 클래스가 정상적으로 설정되지 않은 것 같습니다.");
456 return nullptr;
457 }
458}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
TSet< TSubclassOf< USettingFieldWidget > > SettingFieldWidgetClass
Definition UserGameSettings.h:400
◆ GetSettingOption()
408{
409 const FInstancedStruct* SettingStruct =
Settings.Find(SettingType);
410
411 if (SettingStruct == nullptr)
412 {
413 return T();
414 }
415
416 const T* Setting = SettingStruct->GetPtr<T>();
417
418 if (Setting == nullptr)
419 {
420 return T();
421 }
422
423 return *Setting;
424}
◆ GetSettings() [1/2]
| FORCEINLINE const TMap< EUserGameSetting, FInstancedStruct > & UUserGameSettings::GetSettings |
( |
| ) |
const |
|
inline |
◆ GetSettings() [2/2]
456{
457 TMap<EUserGameSetting, FInstancedStruct> Result;
458
460 {
462 {
463 Result.Add(Key, Value);
464 }
465 }
466
467 return Result;
468}
◆ SettingFieldWidgetClass
◆ Settings
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: