mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-07-26 18:00:38 +00:00
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:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user