![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
Dynamically updated setting value. More...
#include <SettingManager.hpp>
Public Member Functions | |
DynamicSetting (const std::string &path, const T &defaultValue) | |
Constructor. More... | |
operator const T & () const | |
Conversion operator. More... | |
Public Attributes | |
T | value |
The current value, automatically updated. More... | |
Additional Inherited Members |
Dynamically updated setting value.
This is a helper struct for using the setting callback system. It contains a value which will be automatically updated if the associated setting's value ever changes. Using this struct you won't necessarily have to define your own callback or do continuous checks to see if an individual setting has changed.
Definition at line 225 of file SettingManager.hpp.
jop::DynamicSetting< T >::DynamicSetting | ( | const std::string & | path, |
const T & | defaultValue | ||
) |
Constructor.
path | The setting path |
defaultValue | The default value |
jop::DynamicSetting< T >::operator const T & | ( | ) | const |
Conversion operator.
Used to convert a DynamicSetting into its actual value.
T jop::DynamicSetting< T >::value |
The current value, automatically updated.
Definition at line 250 of file SettingManager.hpp.