Files
UnrealEngine/Samples/Games/Lyra/Plugins/GameSettings/Source/Public/GameSettingValueDiscrete.h
2025-05-18 13:04:45 +08:00

39 lines
917 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GameSettingValue.h"
#include "GameSettingValueDiscrete.generated.h"
#define UE_API GAMESETTINGS_API
class UObject;
struct FFrame;
UCLASS(MinimalAPI, Abstract)
class UGameSettingValueDiscrete : public UGameSettingValue
{
GENERATED_BODY()
public:
UE_API UGameSettingValueDiscrete();
/** UGameSettingValueDiscrete */
UE_API virtual void SetDiscreteOptionByIndex(int32 Index) PURE_VIRTUAL(,);
UFUNCTION(BlueprintCallable)
UE_API virtual int32 GetDiscreteOptionIndex() const PURE_VIRTUAL(,return INDEX_NONE;);
/** Optional */
UFUNCTION(BlueprintCallable)
virtual int32 GetDiscreteOptionDefaultIndex() const { return INDEX_NONE; }
UFUNCTION(BlueprintCallable)
UE_API virtual TArray<FText> GetDiscreteOptions() const PURE_VIRTUAL(,return TArray<FText>(););
UE_API virtual FString GetAnalyticsValue() const;
};
#undef UE_API