2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-24 09:16:39 +00:00

chore: always use dynamic asset pools and remove static implementation

This commit is contained in:
Jan
2025-01-21 20:42:13 +01:00
parent 74f84cbf83
commit b4194eff28
20 changed files with 420 additions and 963 deletions

View File

@@ -4,20 +4,18 @@
#include "GlobalAssetPool.h"
#include "XAssetInfo.h"
#include <cstring>
#include <vector>
template<typename T> class AssetPoolDynamic final : public AssetPool<T>
{
using AssetPool<T>::m_asset_lookup;
std::vector<std::unique_ptr<XAssetInfo<T>>> m_assets;
asset_type_t m_type;
public:
AssetPoolDynamic(const int priority, const asset_type_t type)
explicit AssetPoolDynamic(const zone_priority_t priority)
{
GlobalAssetPool<T>::LinkAssetPool(this, priority);
m_type = type;
}
AssetPoolDynamic(AssetPoolDynamic<T>&) = delete;