mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-22 17:15:46 +00:00
21 lines
723 B
C++
21 lines
723 B
C++
#pragma once
|
|
|
|
#include "Game/IW4/IW4.h"
|
|
#include "AssetLoading/BasicAssetLoader.h"
|
|
#include "SearchPath/ISearchPath.h"
|
|
|
|
namespace IW4
|
|
{
|
|
class AssetLoaderGfxLightDef final : public BasicAssetLoader<ASSET_TYPE_LIGHT_DEF, GfxLightDef>
|
|
{
|
|
static constexpr auto MAX_IMAGE_NAME_SIZE = 0x800;
|
|
|
|
static std::string GetAssetFilename(const std::string& assetName);
|
|
|
|
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;
|
|
};
|
|
}
|