mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
44 lines
1.7 KiB
C++
44 lines
1.7 KiB
C++
#include "ObjCompilerIW5.h"
|
|
|
|
#include "Game/IW5/IW5.h"
|
|
#include "Image/ImageIwdPostProcessor.h"
|
|
|
|
#include <memory>
|
|
|
|
using namespace IW5;
|
|
|
|
namespace
|
|
{
|
|
void ConfigureCompilers(AssetCreatorCollection& collection, Zone& zone, ISearchPath& searchPath)
|
|
{
|
|
auto& memory = *zone.GetMemory();
|
|
|
|
// No compilers yet
|
|
}
|
|
|
|
void ConfigurePostProcessors(AssetCreatorCollection& collection,
|
|
Zone& zone,
|
|
const ZoneDefinitionContext& zoneDefinition,
|
|
ISearchPath& searchPath,
|
|
ZoneAssetCreationStateContainer& zoneStates,
|
|
IOutputPath& outDir)
|
|
{
|
|
auto& memory = *zone.GetMemory();
|
|
|
|
if (ImageIwdPostProcessor<AssetImage>::AppliesToZoneDefinition(zoneDefinition))
|
|
collection.AddAssetPostProcessor(std::make_unique<ImageIwdPostProcessor<AssetImage>>(zoneDefinition, searchPath, zoneStates, outDir));
|
|
}
|
|
} // namespace
|
|
|
|
void ObjCompiler::ConfigureCreatorCollection(AssetCreatorCollection& collection,
|
|
Zone& zone,
|
|
const ZoneDefinitionContext& zoneDefinition,
|
|
ISearchPath& searchPath,
|
|
IGdtQueryable& gdt,
|
|
ZoneAssetCreationStateContainer& zoneStates,
|
|
IOutputPath& outDir,
|
|
IOutputPath& cacheDir) const
|
|
{
|
|
ConfigurePostProcessors(collection, zone, zoneDefinition, searchPath, zoneStates, outDir);
|
|
}
|