mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-02-14 19:33:02 +00:00
refactor: introduce subasset loading
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#include "Game/IW4/Techset/TechsetConstantsIW4.h"
|
||||
#include "Gdt/AbstractGdtEntryReader.h"
|
||||
#include "Gdt/IGdtQueryable.h"
|
||||
#include "ObjLoading.h"
|
||||
#include "Pool/GlobalAssetPool.h"
|
||||
#include "StateMap/StateMapFromTechniqueExtractor.h"
|
||||
#include "StateMap/StateMapHandler.h"
|
||||
@@ -18,6 +17,7 @@
|
||||
#include "Techset/TechsetDefinitionCache.h"
|
||||
#include "Utils/Logging/Log.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include <format>
|
||||
|
||||
@@ -34,11 +34,9 @@ namespace image
|
||||
unsigned m_current_ipak_end_index;
|
||||
};
|
||||
|
||||
template<typename AssetType> class IPakPostProcessor final : public AbstractIPakPostProcessor
|
||||
template<AssetDefinition Asset_t> class IPakPostProcessor final : public AbstractIPakPostProcessor
|
||||
{
|
||||
public:
|
||||
static_assert(std::is_base_of_v<IAssetBase, AssetType>);
|
||||
|
||||
IPakPostProcessor(const ZoneDefinitionContext& zoneDefinition,
|
||||
ISearchPath& searchPath,
|
||||
ZoneAssetCreationStateContainer& zoneStates,
|
||||
@@ -49,7 +47,7 @@ namespace image
|
||||
|
||||
[[nodiscard]] asset_type_t GetHandlingAssetType() const override
|
||||
{
|
||||
return AssetType::EnumEntry;
|
||||
return Asset_t::EnumEntry;
|
||||
}
|
||||
};
|
||||
} // namespace image
|
||||
|
||||
@@ -34,11 +34,9 @@ namespace image
|
||||
unsigned m_current_iwd_end_index;
|
||||
};
|
||||
|
||||
template<typename AssetType> class IwdPostProcessor final : public AbstractIwdPostProcessor
|
||||
template<AssetDefinition Asset_t> class IwdPostProcessor final : public AbstractIwdPostProcessor
|
||||
{
|
||||
public:
|
||||
static_assert(std::is_base_of_v<IAssetBase, AssetType>);
|
||||
|
||||
IwdPostProcessor(const ZoneDefinitionContext& zoneDefinition, ISearchPath& searchPath, ZoneAssetCreationStateContainer& zoneStates, IOutputPath& outDir)
|
||||
: AbstractIwdPostProcessor(zoneDefinition, searchPath, zoneStates, outDir)
|
||||
{
|
||||
@@ -46,7 +44,7 @@ namespace image
|
||||
|
||||
[[nodiscard]] asset_type_t GetHandlingAssetType() const override
|
||||
{
|
||||
return AssetType::EnumEntry;
|
||||
return Asset_t::EnumEntry;
|
||||
}
|
||||
};
|
||||
} // namespace image
|
||||
|
||||
Reference in New Issue
Block a user