mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 16:45:44 +00:00
28 lines
1.2 KiB
C++
28 lines
1.2 KiB
C++
#pragma once
|
|
#include <string>
|
|
|
|
#include "AssetLoadingContext.h"
|
|
#include "Pool/XAssetInfo.h"
|
|
#include "Zone/ZoneTypes.h"
|
|
#include "Utils/ClassUtils.h"
|
|
|
|
class IAssetLoadingManager
|
|
{
|
|
public:
|
|
IAssetLoadingManager() = default;
|
|
virtual ~IAssetLoadingManager() = default;
|
|
IAssetLoadingManager(const IAssetLoadingManager& other) = default;
|
|
IAssetLoadingManager(IAssetLoadingManager&& other) noexcept = default;
|
|
IAssetLoadingManager& operator=(const IAssetLoadingManager& other) = default;
|
|
IAssetLoadingManager& operator=(IAssetLoadingManager&& other) noexcept = default;
|
|
|
|
_NODISCARD virtual AssetLoadingContext* GetAssetLoadingContext() const = 0;
|
|
|
|
virtual XAssetInfoGeneric* AddAsset(asset_type_t assetType, const std::string& assetName, void* asset, std::vector<XAssetInfoGeneric*> dependencies, std::vector<scr_string_t> usedScriptStrings) = 0;
|
|
XAssetInfoGeneric* AddAsset(const asset_type_t assetType, const std::string& assetName, void* asset)
|
|
{
|
|
return AddAsset(assetType, assetName, asset, std::vector<XAssetInfoGeneric*>(), std::vector<scr_string_t>());
|
|
}
|
|
virtual XAssetInfoGeneric* LoadDependency(asset_type_t assetType, const std::string& assetName) = 0;
|
|
};
|