 |
Cytopia
0.3
A city building simulation game
|
Go to the documentation of this file. 1 #ifndef RESOURCE_MANAGER_HXX_
2 #define RESOURCE_MANAGER_HXX_
4 #include <unordered_map>
11 #include "../util/Singleton.hxx"
12 #include "../util/Meta.hxx"
14 template <
typename Key,
typename Value>
using Mapping = std::unordered_map<Key, Value>;
const value_type & reference
AgeIterator & operator++()
Constant::value returns the value.
typename Iterator::iterator_category iterator_category
bool operator!=(const AgeIterator &other) const
void prune()
Cleans up the cache of unused resources.
ResourceManager()
Creates the ResourceManager.
reference operator*() const
std::unordered_map< Key, Value > Mapping
Abstract Singleton implementation.
Container for raw pcm data that read from .ogg sound file.
bool operator==(const AgeIterator &other) const
decltype(ResourceItem< nullptr_t >().age) value_type
resource_type< ResourceID >::type get(const ResourceID &)
Fetches and return a Soundtrack.