engine/include/resources/resource.hpp

23 lines
383 B
C++
Raw Normal View History

2022-09-02 11:06:59 +00:00
#pragma once
#include <string>
#include <filesystem>
class Resource {
public:
Resource(const std::filesystem::path& resPath, const std::string& type);
Resource(const Resource&) = delete;
Resource& operator=(const Resource&) = delete;
virtual ~Resource() = 0;
std::string getType();
protected:
std::filesystem::path m_resourcePath;
private:
const std::string m_type;
};