mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-05 16:27:27 +00:00
refactor: streamline phys constraints dumping
This commit is contained in:
11
src/ObjCommon/PhysConstraints/PhysConstraintsCommon.cpp
Normal file
11
src/ObjCommon/PhysConstraints/PhysConstraintsCommon.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "PhysConstraintsCommon.h"
|
||||
|
||||
#include <format>
|
||||
|
||||
namespace phys_constraints
|
||||
{
|
||||
std::string GetFileNameForAssetName(const std::string& assetName)
|
||||
{
|
||||
return std::format("physconstraints/{}", assetName);
|
||||
}
|
||||
} // namespace phys_constraints
|
8
src/ObjCommon/PhysConstraints/PhysConstraintsCommon.h
Normal file
8
src/ObjCommon/PhysConstraints/PhysConstraintsCommon.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace phys_constraints
|
||||
{
|
||||
std::string GetFileNameForAssetName(const std::string& assetName);
|
||||
}
|
Reference in New Issue
Block a user