refactor: accuracy graph subassets (#847)

* refactor: use subassets to load accuracy graphs for iw4,iw5,t5,t6

* fix: not dumping anim names for t5 weapons and t6 attachment unique

* refactor: dump accuracy graphs like a subasset

* refactor: use shared method for accuracy graph filenames
This commit is contained in:
Jan
2026-06-20 17:16:37 +02:00
committed by GitHub
parent b5acacf680
commit b4477ac1a9
29 changed files with 464 additions and 354 deletions
+15
View File
@@ -9,6 +9,21 @@ namespace weapon
return std::format("weapons/{}", assetName);
}
std::string GetFileNameForAccuracyGraph(const std::string& assetName)
{
return std::format("accuracy/{}", assetName);
}
std::string GetAssetNameForAiVsAiAccuracyGraph(const std::string& graphName)
{
return std::format("aivsai/{}", graphName);
}
std::string GetAssetNameForAiVsPlayerAccuracyGraph(const std::string& graphName)
{
return std::format("aivsplayer/{}", graphName);
}
std::string GetFileNameForFlameTable(const std::string& flameTableName)
{
return std::format("weapons/{}", flameTableName);
+5
View File
@@ -5,5 +5,10 @@
namespace weapon
{
std::string GetFileNameForAssetName(const std::string& assetName);
std::string GetFileNameForAccuracyGraph(const std::string& assetName);
std::string GetAssetNameForAiVsAiAccuracyGraph(const std::string& graphName);
std::string GetAssetNameForAiVsPlayerAccuracyGraph(const std::string& graphName);
std::string GetFileNameForFlameTable(const std::string& flameTableName);
} // namespace weapon