RealtimeStyleTransferRuntime/Source/LyraGame/Settings/CustomSettings/LyraSettingValueDiscrete_La...

42 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/Array.h"
#include "Containers/UnrealString.h"
#include "GameSettingValueDiscrete.h"
#include "HAL/Platform.h"
#include "UObject/UObjectGlobals.h"
#include "LyraSettingValueDiscrete_Language.generated.h"
class FText;
class UObject;
UCLASS()
class LYRAGAME_API ULyraSettingValueDiscrete_Language : public UGameSettingValueDiscrete
{
GENERATED_BODY()
public:
ULyraSettingValueDiscrete_Language();
/** UGameSettingValue */
virtual void StoreInitial() override;
virtual void ResetToDefault() override;
virtual void RestoreToInitial() override;
/** UGameSettingValueDiscrete */
virtual void SetDiscreteOptionByIndex(int32 Index) override;
virtual int32 GetDiscreteOptionIndex() const override;
virtual TArray<FText> GetDiscreteOptions() const override;
protected:
/** UGameSettingValue */
virtual void OnInitialized() override;
virtual void OnApply() override;
protected:
TArray<FString> AvailableCultureNames;
};