Files
Seele/src/Engine/Asset/Asset.cpp
T

23 lines
653 B
C++
Raw Normal View History

2020-05-05 01:51:13 +02:00
#include "Asset.h"
2020-09-19 14:36:50 +02:00
#include "AssetRegistry.h"
2023-02-13 14:56:13 +01:00
#include "Graphics/Graphics.h"
2020-05-05 01:51:13 +02:00
using namespace Seele;
2024-06-09 12:20:04 +02:00
Asset::Asset() : folderPath(""), name(""), status(Status::Uninitialized), byteSize(0) {}
Asset::Asset(std::string_view _folderPath, std::string_view _name) : folderPath(_folderPath), name(_name), status(Status::Uninitialized) {
if (folderPath.empty()) {
2023-02-13 14:56:13 +01:00
assetId = name;
2024-06-09 12:20:04 +02:00
} else {
2023-02-13 14:56:13 +01:00
assetId = folderPath + "/" + name;
2020-09-19 14:36:50 +02:00
}
2020-06-02 11:46:18 +02:00
}
2024-06-09 12:20:04 +02:00
Asset::~Asset() {}
2020-05-05 01:51:13 +02:00
2024-06-09 12:20:04 +02:00
std::string Asset::getFolderPath() const { return folderPath; }
2020-06-02 11:46:18 +02:00
2024-06-09 12:20:04 +02:00
std::string Asset::getName() const { return name; }
2020-06-02 11:46:18 +02:00
2024-06-09 12:20:04 +02:00
std::string Asset::getAssetIdentifier() const { return assetId; }