2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-19 00:47:48 +00:00

chore: add ObjCompiling component

This commit is contained in:
Jan
2024-10-20 14:12:16 +02:00
parent f9e0bdaa7b
commit 3803ae24f5
17 changed files with 227 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
#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);
};