mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-05 16:27:27 +00:00
refactor: merge leaderboard dumpers into a single file
This commit is contained in:
11
src/ObjCommon/Leaderboard/LeaderboardCommon.cpp
Normal file
11
src/ObjCommon/Leaderboard/LeaderboardCommon.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "LeaderboardCommon.h"
|
||||
|
||||
#include <format>
|
||||
|
||||
namespace leaderboard
|
||||
{
|
||||
std::string GetJsonFileNameForAsset(const std::string& assetName)
|
||||
{
|
||||
return std::format("leaderboards/{}.json", assetName);
|
||||
}
|
||||
} // namespace leaderboard
|
8
src/ObjCommon/Leaderboard/LeaderboardCommon.h
Normal file
8
src/ObjCommon/Leaderboard/LeaderboardCommon.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace leaderboard
|
||||
{
|
||||
std::string GetJsonFileNameForAsset(const std::string& assetName);
|
||||
}
|
Reference in New Issue
Block a user