#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:41
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
다음을 참조함 : FSettingsBase::CopyBaseSetting(), DropdownOptions, InitialKey, LOG_ERROR, SelectedKey.
◆ 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}
다음을 참조함 : DropdownOptions.
◆ GetOptions() [1/2]
template<typename TDropdownOption >
| const TDropdownOption & FDropdownSettings::GetOptions |
( |
| ) |
const |
◆ 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}
다음을 참조함 : DropdownOptions.
◆ GetSelectionKey()
| FName FDropdownSettings::GetSelectionKey |
( |
| ) |
const |
◆ 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
다음을 참조함 : GetSelectionKey(), FSettingValueString::Value.
◆ HasValidSelection()
| bool FDropdownSettings::HasValidSelection |
( |
| ) |
const |
◆ SetSettingValue()
| void FDropdownSettings::SetSettingValue |
( |
const FInstancedStruct & |
SettingValue | ) |
|
|
overridevirtual |
◆ DropdownOptions
| TMap<FName, FInstancedStruct> FDropdownSettings::DropdownOptions |
◆ InitialKey
| FName FDropdownSettings::InitialKey = NAME_None |
◆ SelectedKey
| FName FDropdownSettings::SelectedKey = NAME_None |
이 구조체에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: