[ox] Make model TypeVersion mandatory so Claw can do version checking

This commit is contained in:
2022-02-17 04:09:44 -06:00
parent 3389656ecf
commit 21d12fee94
5 changed files with 52 additions and 9 deletions

View File

@ -26,7 +26,7 @@ struct TypeInfoCatcher {
const char *name = nullptr;
template<typename T = void>
constexpr void setTypeInfo(const char *name = T::TypeName, int = T::Fields) noexcept {
constexpr void setTypeInfo(const char *name = T::TypeName, int = T::TypeVersion) noexcept {
this->name = name;
}