2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-05 16:27:27 +00:00

refactor: streamline weapon dumping

This commit is contained in:
Jan Laupetin
2025-08-03 13:12:50 +02:00
parent 58de885ebe
commit 0546572ecf
68 changed files with 1380 additions and 1349 deletions

View File

@@ -0,0 +1,16 @@
#include "AttachmentCommon.h"
#include <format>
namespace attachment
{
std::string GetInfoStringFileNameForAssetName(const std::string& assetName)
{
return std::format("attachment/{}", assetName);
}
std::string GetJsonFileNameForAssetName(const std::string& assetName)
{
return std::format("attachment/{}.json", assetName);
}
} // namespace attachment

View File

@@ -0,0 +1,9 @@
#pragma once
#include <string>
namespace attachment
{
std::string GetInfoStringFileNameForAssetName(const std::string& assetName);
std::string GetJsonFileNameForAssetName(const std::string& assetName);
} // namespace attachment

View File

@@ -0,0 +1,11 @@
#include "AttachmentUniqueCommon.h"
#include <format>
namespace attachment_unique
{
std::string GetFileNameForAssetName(const std::string& assetName)
{
return std::format("attachmentunique/{}", assetName);
}
} // namespace attachment_unique

View File

@@ -0,0 +1,8 @@
#pragma once
#include <string>
namespace attachment_unique
{
std::string GetFileNameForAssetName(const std::string& assetName);
}

View File

@@ -0,0 +1,11 @@
#include "WeaponCommon.h"
#include <format>
namespace camo
{
std::string GetJsonFileNameForAssetName(const std::string& assetName)
{
return std::format("camo/{}.json", assetName);
}
} // namespace camo

View File

@@ -0,0 +1,8 @@
#pragma once
#include <string>
namespace camo
{
std::string GetJsonFileNameForAssetName(const std::string& assetName);
}

View File

@@ -0,0 +1,11 @@
#include "WeaponCommon.h"
#include <format>
namespace weapon
{
std::string GetFileNameForAssetName(const std::string& assetName)
{
return std::format("weapons/{}", assetName);
}
} // namespace weapon

View File

@@ -0,0 +1,8 @@
#pragma once
#include <string>
namespace weapon
{
std::string GetFileNameForAssetName(const std::string& assetName);
}