mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
24 lines
497 B
C++
24 lines
497 B
C++
#include "resources/resource.hpp"
|
|
|
|
#include <log.hpp>
|
|
|
|
namespace engine {
|
|
|
|
Resource::Resource(const std::filesystem::path& resPath, const std::string& type) : m_resourcePath(resPath), m_type(type)
|
|
{
|
|
if (m_type != "mesh")
|
|
TRACE("Creating {} resource: {}", type, resPath.filename().string());
|
|
}
|
|
|
|
Resource::~Resource()
|
|
{
|
|
if (m_type != "mesh")
|
|
TRACE("Destroyed {} resource: {}", m_type, m_resourcePath.filename().string());
|
|
}
|
|
|
|
std::string Resource::getType()
|
|
{
|
|
return m_type;
|
|
}
|
|
|
|
} |