Update PetComponent.h

This commit is contained in:
jadebenn 2024-01-01 03:24:00 -06:00 committed by GitHub
parent b83e1bf20d
commit 1ee5b64acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,14 +114,14 @@ public:
* @param flag PetFlag(s) to check * @param flag PetFlag(s) to check
*/ */
template <typename... varArg> template <typename... varArg>
inline constexpr bool HasFlag(varArg... flag) { return (m_Flags & (static_cast<uint32_t>(flag) | ...)) == (static_cast<uint32_t>(flag) | ...); }; inline const bool HasFlag(varArg... flag) { return (m_Flags & (static_cast<uint32_t>(flag) | ...)) == (static_cast<uint32_t>(flag) | ...); };
/** /**
* Returns true if the pet has ONLY the specified flag(s) * Returns true if the pet has ONLY the specified flag(s)
* @param flag PetFlag(s) to check if the pet has exclusively * @param flag PetFlag(s) to check if the pet has exclusively
*/ */
template <typename... varArg> template <typename... varArg>
inline constexpr bool HasOnlyFlag(varArg... flag) { return m_Flags == (static_cast<uint32_t>(flag) | ...); }; inline const bool HasOnlyFlag(varArg... flag) { return m_Flags == (static_cast<uint32_t>(flag) | ...); };
/** /**
* Governs the pet update loop * Governs the pet update loop