Further work on subcomponents

serialization is improved, next is re-implementing the actual functionality.
This commit is contained in:
David Markowitz
2023-08-01 01:19:07 -07:00
parent ba409b6ee2
commit 43657324e9
7 changed files with 268 additions and 63 deletions

View File

@@ -16,7 +16,9 @@ enum class eMovementPlatformState : uint32_t
};
inline constexpr eMovementPlatformState operator|(eMovementPlatformState a, eMovementPlatformState b) {
return static_cast<eMovementPlatformState>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b));
return static_cast<eMovementPlatformState>(
static_cast<std::underlying_type<eMovementPlatformState>::type>(a) |
static_cast<std::underlying_type<eMovementPlatformState>::type>(b));
};
#endif //!__EMOVEMENTPLATFORMSTATE__H__