This repository has been archived on 2019-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
2012-09-09 20:50:15 +00:00
|
|
|
/*
|
|
|
|
* ResourceManager.h
|
|
|
|
*
|
|
|
|
* Created on: 22.07.2012
|
|
|
|
* Author: Felix
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DG_RESOURCEMANAGER_H_
|
|
|
|
#define DG_RESOURCEMANAGER_H_
|
|
|
|
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
|
|
|
|
#include <Thor/Resources.hpp>
|
|
|
|
|
2012-10-14 16:14:06 +00:00
|
|
|
#include "../abstract/Singleton.h"
|
2012-09-09 20:50:15 +00:00
|
|
|
|
2012-09-14 18:39:56 +00:00
|
|
|
template <class T>
|
|
|
|
class Singleton;
|
|
|
|
|
2012-09-09 20:50:15 +00:00
|
|
|
/**
|
|
|
|
* Loads and manages all resources by providing Singleton access to Thor ResourceManager.
|
|
|
|
*/
|
|
|
|
class ResourceManager : public thor::MultiResourceCache, public Singleton<ResourceManager> {
|
2012-09-16 18:45:12 +00:00
|
|
|
// Private functions.
|
2012-09-09 20:50:15 +00:00
|
|
|
private:
|
|
|
|
friend class Singleton<ResourceManager>;
|
|
|
|
ResourceManager() = default;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* DG_RESOURCEMANAGER_H_ */
|