File size: 1,164 Bytes
b315adb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | // Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GameSetting.h"
#include "GameSettingValue.generated.h"
#define UE_API GAMESETTINGS_API
class UObject;
//--------------------------------------
// UGameSettingValue
//--------------------------------------
/**
* The base class for all settings that are conceptually a value, that can be
* changed, and thus reset or restored to their initial value.
*/
UCLASS(MinimalAPI, Abstract)
class UGameSettingValue : public UGameSetting
{
GENERATED_BODY()
public:
UE_API UGameSettingValue();
/** Stores an initial value for the setting. This will be called on initialize, but should also be called if you 'apply' the setting. */
UE_API virtual void StoreInitial() PURE_VIRTUAL(, );
/** Resets the property to the default. */
UE_API virtual void ResetToDefault() PURE_VIRTUAL(, );
/** Restores the setting to the initial value, this is the value when you open the settings before making any tweaks. */
UE_API virtual void RestoreToInitial() PURE_VIRTUAL(, );
protected:
UE_API virtual void OnInitialized() override;
};
#undef UE_API
|