#include <UserGameSettings.h>
◆ CopySettings()
| void FDropdownSettings::CopySettings |
( |
FSettingsBase * |
OtherSetting | ) |
|
|
overridevirtual |
FSettingsBase(으)로부터 재구현되었습니다.
393{
395 if (Settings == nullptr)
396 {
397 LOG_ERROR(LogCK,
"%s로 변환할 수 없습니다.", *FDropdownSettings::StaticStruct()->GetName());
398 return;
399 }
400
405}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
Definition UserGameSettings.h:266
FName SelectedKey
Definition UserGameSettings.h:296
TMap< FName, FInstancedStruct > DropdownOptions
Definition UserGameSettings.h:290
FName InitialKey
Definition UserGameSettings.h:293
static void CopyBaseSetting(const FSettingsBase &Source, FSettingsBase &Target)
Definition UserGameSettings.cpp:296
◆ GetKeyByValue()
template<typename TDropdownOption >
| const FName & FDropdownSettings::GetKeyByValue |
( |
const TDropdownOption & |
Value | ) |
const |
494{
495 for (
const TPair<FName, FInstancedStruct>& DropdownOption :
DropdownOptions)
496 {
497 const TDropdownOption* Option = DropdownOption.Value.GetPtr<TDropdownOption>();
498
499 if (Option && Option->Value == Value.Value)
500 {
501 return DropdownOption.Key;
502 }
503 }
504
505 static const FName DefaultKey = NAME_None;
506 return DefaultKey;
507}
◆ GetOptions() [1/2]
template<typename TDropdownOption >
| const TDropdownOption & FDropdownSettings::GetOptions |
( |
| ) |
const |
511{
512 for (
const TPair<FName, FInstancedStruct>& DropdownOption :
DropdownOptions)
513 {
514 const TDropdownOption* Option = DropdownOption.Value.GetPtr<TDropdownOption>();
515
516 if (Option)
517 {
518 return *Option;
519 }
520 }
521
522 static const TDropdownOption EmptyOption;
523 return EmptyOption;
524}
◆ GetOptions() [2/2]
template<typename TDropdownOption >
| const TDropdownOption & FDropdownSettings::GetOptions |
( |
const FName & |
Key | ) |
const |
528{
530 if (Value == nullptr)
531 {
532 static const TDropdownOption EmptyOption;
533 return EmptyOption;
534 }
535
536 const TDropdownOption* Option = Value->GetPtr<TDropdownOption>();
537 if (Option)
538 {
539 return *Option;
540 }
541
542 static const TDropdownOption EmptyOption;
543 return EmptyOption;
544}
◆ GetSelectionKey()
| FName FDropdownSettings::GetSelectionKey |
( |
| ) |
const |
439{
441 {
443 }
444
446}
◆ GetSettingsStruct()
| const UScriptStruct * FDropdownSettings::GetSettingsStruct |
( |
| ) |
const |
|
overridevirtual |
FSettingsBase(으)로부터 재구현되었습니다.
387{
388 return FDropdownSettings::StaticStruct();
389}
◆ GetSettingValue()
| FInstancedStruct FDropdownSettings::GetSettingValue |
( |
| ) |
const |
|
overridevirtual |
FSettingsBase(으)로부터 재구현되었습니다.
409{
412 return FInstancedStruct::Make(Result);
413}
FName GetSelectionKey() const
Definition UserGameSettings.cpp:438
Definition UserGameSettings.h:155
FString Value
Definition UserGameSettings.h:160
◆ HasValidSelection()
| bool FDropdownSettings::HasValidSelection |
( |
| ) |
const |
◆ SetSettingValue()
| void FDropdownSettings::SetSettingValue |
( |
const FInstancedStruct & |
SettingValue | ) |
|
|
overridevirtual |
FSettingsBase(으)로부터 재구현되었습니다.
417{
419
420 if (Value == nullptr)
421 {
422 LOG_ERROR(LogCK,
"%s로 변환할 수 없습니다.", *FSettingValueString::StaticStruct()->GetName());
423 return;
424 }
425
426 const FName SavedKey = FName(*Value->
Value);
427
429 {
431 return;
432 }
433
435}
◆ DropdownOptions
| TMap<FName, FInstancedStruct> FDropdownSettings::DropdownOptions |
◆ InitialKey
| FName FDropdownSettings::InitialKey = NAME_None |
◆ SelectedKey
| FName FDropdownSettings::SelectedKey = NAME_None |
이 구조체에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: