mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-07 05:23:02 +00:00
refactor: do not nest asset namespaces in game namespaces
* Duplicated namespace names are kind of annoying
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
|
||||
using namespace IW5;
|
||||
|
||||
namespace IW5::string_table
|
||||
namespace string_table
|
||||
{
|
||||
bool Dumper::ShouldDump(XAssetInfo<StringTable>* asset)
|
||||
bool DumperIW5::ShouldDump(XAssetInfo<StringTable>* asset)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void Dumper::DumpAsset(AssetDumpingContext& context, XAssetInfo<StringTable>* asset)
|
||||
void DumperIW5::DumpAsset(AssetDumpingContext& context, XAssetInfo<StringTable>* asset)
|
||||
{
|
||||
const auto* stringTable = asset->Asset();
|
||||
const auto assetFile = context.OpenAssetFile(asset->m_name);
|
||||
@@ -39,4 +39,4 @@ namespace IW5::string_table
|
||||
csv.NextRow();
|
||||
}
|
||||
}
|
||||
} // namespace IW5::string_table
|
||||
} // namespace string_table
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
#include "Dumping/AbstractAssetDumper.h"
|
||||
#include "Game/IW5/IW5.h"
|
||||
|
||||
namespace IW5::string_table
|
||||
namespace string_table
|
||||
{
|
||||
class Dumper final : public AbstractAssetDumper<StringTable>
|
||||
class DumperIW5 final : public AbstractAssetDumper<IW5::StringTable>
|
||||
{
|
||||
protected:
|
||||
bool ShouldDump(XAssetInfo<StringTable>* asset) override;
|
||||
void DumpAsset(AssetDumpingContext& context, XAssetInfo<StringTable>* asset) override;
|
||||
bool ShouldDump(XAssetInfo<IW5::StringTable>* asset) override;
|
||||
void DumpAsset(AssetDumpingContext& context, XAssetInfo<IW5::StringTable>* asset) override;
|
||||
};
|
||||
} // namespace IW5::string_table
|
||||
} // namespace string_table
|
||||
|
||||
Reference in New Issue
Block a user