32 lines
854 B
C++
32 lines
854 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Containers/Array.h"
|
|
#include "Containers/UnrealString.h"
|
|
#include "GameSettingDataSource.h"
|
|
#include "PropertyPathHelpers.h"
|
|
|
|
class ULocalPlayer;
|
|
|
|
//--------------------------------------
|
|
// FGameSettingDataSourceDynamic
|
|
//--------------------------------------
|
|
|
|
class GAMESETTINGS_API FGameSettingDataSourceDynamic : public FGameSettingDataSource
|
|
{
|
|
public:
|
|
FGameSettingDataSourceDynamic(const TArray<FString>& InDynamicPath);
|
|
|
|
virtual bool Resolve(ULocalPlayer* InLocalPlayer) override;
|
|
|
|
virtual FString GetValueAsString(ULocalPlayer* InLocalPlayer) const override;
|
|
|
|
virtual void SetValue(ULocalPlayer* InLocalPlayer, const FString& Value) override;
|
|
|
|
virtual FString ToString() const override;
|
|
|
|
private:
|
|
FCachedPropertyPath DynamicPath;
|
|
};
|