mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-07 21:38:01 -05:00
31 lines
824 B
C++
31 lines
824 B
C++
#pragma once
|
|
|
|
#include "AssetLoading/AssetLoadingContext.h"
|
|
#include "SearchPath/ISearchPath.h"
|
|
#include "Zone/Zone.h"
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
enum class ObjCompilerResult : std::uint8_t
|
|
{
|
|
COMPILED,
|
|
NO_COMPILATION_DONE,
|
|
FAILURE
|
|
};
|
|
|
|
class IObjCompiler
|
|
{
|
|
public:
|
|
IObjCompiler() = default;
|
|
virtual ~IObjCompiler() = default;
|
|
IObjCompiler(const IObjCompiler& other) = default;
|
|
IObjCompiler(IObjCompiler&& other) noexcept = default;
|
|
IObjCompiler& operator=(const IObjCompiler& other) = default;
|
|
IObjCompiler& operator=(IObjCompiler&& other) noexcept = default;
|
|
|
|
virtual ObjCompilerResult CompileAssetForZone(AssetLoadingContext& context, asset_type_t assetType, const std::string& assetName) const = 0;
|
|
|
|
static const IObjCompiler* GetObjCompilerForGame(GameId game);
|
|
};
|