mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-08 22:08:29 -05:00
27 lines
1.1 KiB
C++
27 lines
1.1 KiB
C++
#pragma once
|
|
#include "AssetLoading/BasicAssetLoader.h"
|
|
#include "AssetLoading/IAssetLoadingManager.h"
|
|
#include "Game/T6/T6.h"
|
|
#include "InfoString/InfoString.h"
|
|
#include "SearchPath/ISearchPath.h"
|
|
|
|
namespace T6
|
|
{
|
|
class AssetLoaderWeaponAttachment final : public BasicAssetLoader<AssetAttachment>
|
|
{
|
|
static void CalculateAttachmentFields(WeaponAttachment* attachment);
|
|
|
|
static bool
|
|
LoadFromInfoString(const InfoString& infoString, const std::string& assetName, MemoryManager* memory, IAssetLoadingManager* manager, Zone* zone);
|
|
|
|
public:
|
|
_NODISCARD void* CreateEmptyAsset(const std::string& assetName, MemoryManager* memory) override;
|
|
_NODISCARD bool CanLoadFromGdt() const override;
|
|
bool LoadFromGdt(
|
|
const std::string& assetName, IGdtQueryable* gdtQueryable, MemoryManager* memory, IAssetLoadingManager* manager, Zone* zone) const override;
|
|
_NODISCARD bool CanLoadFromRaw() const override;
|
|
bool
|
|
LoadFromRaw(const std::string& assetName, ISearchPath* searchPath, MemoryManager* memory, IAssetLoadingManager* manager, Zone* zone) const override;
|
|
};
|
|
} // namespace T6
|