aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/ResourceManager.cpp
blob: 6eb4afdb58b525511426fc073448d3b82785b2a4 (plain)
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
#include "util/Log.h"

#include "ResourceManager.h"

// default resource cache functions
#include "../facade/Sound.h"

using namespace crepe;

ResourceManager & ResourceManager::get_instance() {
	static ResourceManager instance;
	return instance;
}

ResourceManager::~ResourceManager() { dbg_trace(); }
ResourceManager::ResourceManager() { dbg_trace(); }

void ResourceManager::clear() {
	this->resources.clear();
}

template <>
Sound & ResourceManager::cache<Sound>(const Asset & asset) {
	return this->cache<Sound>(asset);
}