diff --git a/deps/ox/src/ox/model/typenamecatcher.hpp b/deps/ox/src/ox/model/typenamecatcher.hpp index d2b555d4..c83fca2f 100644 --- a/deps/ox/src/ox/model/typenamecatcher.hpp +++ b/deps/ox/src/ox/model/typenamecatcher.hpp @@ -147,4 +147,19 @@ constexpr auto ModelTypeName_v = getModelTypeName(); template constexpr auto ModelTypeVersion_v = requireModelTypeVersion(); +template +constexpr auto ModelTypeVersionStr_v = [] { + constexpr auto version = ModelTypeVersion_v; + constexpr auto versionStr = ox::sfmt("{}", version); + return ox::BString{versionStr}; +}; + +template +constexpr auto ModelTypeId_v = [] { + constexpr auto name = ModelTypeName_v; + constexpr auto version = ModelTypeVersion_v; + constexpr auto versionStr = ox::sfmt>("{}", version); + return ox::sfmt>("{};{}", name, versionStr); +}(); + }