|
Voxellancer
0.3
A game about voxels in space
|
#include <propertymanager.h>
Public Member Functions | |
| void | load (const std::string &file, const std::string &prefix="") |
| template<typename T > | |
| PropertyImpl< T > * | getImpl (const std::string &key) |
| template<typename T > | |
| PropertyImpl< T > * | getImpl (const std::string &key, const T &defaultValue) |
| template<typename T > | |
| T | get (const std::string &name) |
| template<typename T > | |
| T | get (const std::string &name, const T &defaultValue) |
Static Public Member Functions | |
| static PropertyManager * | instance () |
| static void | reset () |
Protected Member Functions | |
| template<typename T > | |
| PropertyCollection< T > * | getPropertyCollection () |
| template<typename T > | |
| void | addPropertyCollection (PropertyCollection< T > *collection) |
Protected Attributes | |
|
std::unordered_map< const std::type_info *, std::unique_ptr < AbstractPropertyCollection > > | m_propertyCollections |
Static Protected Attributes | |
| static PropertyManager * | s_instance |
Keeps track of properties and loads ini files. Properties will be updated when a new ini file is loaded. Implements glow::Changeable, so glow::ChangeListener can be notified about changes.