mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 16:52:35 +00:00
refactor: introduce subasset loading
This commit is contained in:
@@ -25,11 +25,6 @@ namespace
|
||||
|
||||
namespace sound
|
||||
{
|
||||
LoadedSoundDumperIW4::LoadedSoundDumperIW4(const AssetPool<AssetLoadedSound::Type>& pool)
|
||||
: AbstractAssetDumper(pool)
|
||||
{
|
||||
}
|
||||
|
||||
void LoadedSoundDumperIW4::DumpAsset(AssetDumpingContext& context, const XAssetInfo<AssetLoadedSound::Type>& asset)
|
||||
{
|
||||
const auto* loadedSound = asset.Asset();
|
||||
|
||||
@@ -7,9 +7,6 @@ namespace sound
|
||||
{
|
||||
class LoadedSoundDumperIW4 final : public AbstractAssetDumper<IW4::AssetLoadedSound>
|
||||
{
|
||||
public:
|
||||
explicit LoadedSoundDumperIW4(const AssetPool<IW4::AssetLoadedSound::Type>& pool);
|
||||
|
||||
protected:
|
||||
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<IW4::AssetLoadedSound::Type>& asset) override;
|
||||
};
|
||||
|
||||
@@ -7,11 +7,6 @@ using namespace IW4;
|
||||
|
||||
namespace sound_curve
|
||||
{
|
||||
DumperIW4::DumperIW4(const AssetPool<AssetSoundCurve::Type>& pool)
|
||||
: AbstractAssetDumper(pool)
|
||||
{
|
||||
}
|
||||
|
||||
void DumperIW4::DumpAsset(AssetDumpingContext& context, const XAssetInfo<AssetSoundCurve::Type>& asset)
|
||||
{
|
||||
const auto* sndCurve = asset.Asset();
|
||||
|
||||
@@ -7,9 +7,6 @@ namespace sound_curve
|
||||
{
|
||||
class DumperIW4 final : public AbstractAssetDumper<IW4::AssetSoundCurve>
|
||||
{
|
||||
public:
|
||||
explicit DumperIW4(const AssetPool<IW4::AssetSoundCurve::Type>& pool);
|
||||
|
||||
protected:
|
||||
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<IW4::AssetSoundCurve::Type>& asset) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user