mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
20 lines
714 B
C++
20 lines
714 B
C++
#pragma once
|
|
|
|
#include "Game/IW4/IW4.h"
|
|
#include "AssetLoading/BasicAssetLoader.h"
|
|
#include "SearchPath/ISearchPath.h"
|
|
|
|
namespace IW4
|
|
{
|
|
class AssetLoaderVertexDecl final : public BasicAssetLoader<ASSET_TYPE_VERTEXDECL, MaterialVertexDeclaration>
|
|
{
|
|
static bool NextAbbreviation(const std::string& assetName, std::string& abbreviation, size_t& offset);
|
|
|
|
public:
|
|
_NODISCARD void* CreateEmptyAsset(const std::string& assetName, MemoryManager* memory) override;
|
|
|
|
_NODISCARD bool CanLoadFromRaw() const override;
|
|
bool LoadFromRaw(const std::string& assetName, ISearchPath* searchPath, MemoryManager* memory, IAssetLoadingManager* manager, Zone* zone) const override;
|
|
};
|
|
}
|