[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

@@ -19,7 +19,6 @@
#include "desctypes.hpp"
#include "fieldcounter.hpp"
#include "optype.hpp"
#include "typenamecatcher.hpp"
#include "types.hpp"
namespace ox::detail {
@@ -37,6 +36,10 @@ struct preloadable<T, BoolWrapper<T::Preloadable>> {
static constexpr bool value = T::Preloadable;
};
template<int>
struct IntWrapper {
};
// cannot be done until C++20
//struct PseudoString {
// constexpr PseudoString(const char* = "") noexcept {}
@@ -56,4 +59,4 @@ struct preloadable<T, BoolWrapper<T::Preloadable>> {
// static constexpr const char *value = T::TypeName;
//};
}
}