[ox/claw] Fix TypeInfoCatcher to fit model handler API
This commit is contained in:
parent
98a0c42040
commit
4d806021d0
6
deps/ox/src/ox/claw/write.hpp
vendored
6
deps/ox/src/ox/claw/write.hpp
vendored
@ -23,7 +23,7 @@ struct TypeInfoCatcher {
|
|||||||
|
|
||||||
const char *name = nullptr;
|
const char *name = nullptr;
|
||||||
|
|
||||||
template<typename T>
|
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::Fields) noexcept {
|
||||||
this->name = name;
|
this->name = name;
|
||||||
}
|
}
|
||||||
@ -32,6 +32,10 @@ struct TypeInfoCatcher {
|
|||||||
return OxError(0);
|
return OxError(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static constexpr auto opType() {
|
||||||
|
return OpType::Write;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user