engine/include/resources/resource.hpp

28 lines
453 B
C++
Raw Normal View History

2022-09-02 11:06:59 +00:00
#pragma once
2022-09-07 09:02:01 +00:00
#include "engine_api.h"
2022-09-02 23:02:09 +00:00
2022-09-02 11:06:59 +00:00
#include <string>
#include <filesystem>
2022-10-06 10:30:44 +00:00
namespace engine {
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
class ENGINE_API Resource {
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
public:
Resource(const std::filesystem::path& resPath, const std::string& type);
Resource(const Resource&) = delete;
Resource& operator=(const Resource&) = delete;
virtual ~Resource() = 0;
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
std::string getType();
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
protected:
std::filesystem::path m_resourcePath;
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
private:
const std::string m_type;
};
}