deleted useless temp header
This commit is contained in:
parent
5393bbfa1b
commit
bc04b95279
35
resource.h
35
resource.h
@ -1,35 +0,0 @@
|
|||||||
#ifndef RESOURCE
|
|
||||||
#define RESOURCE
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
class Resource
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
T* data;
|
|
||||||
std::string sourcePath;
|
|
||||||
std::string name;
|
|
||||||
};
|
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
class DataBank
|
|
||||||
{
|
|
||||||
std::unordered_map<std::string, Resource<T>*> dataMap;
|
|
||||||
std::vector<Resource<T>*> dataList;
|
|
||||||
public:
|
|
||||||
T* get(std::string name)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void set(std::string name, T*)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // RESOURCE
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user