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:
@@ -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