Adds operator != to AbilityType.

Makes Abiites tests use the vector compare helper.
Makes Abilities tests report "no errors" instead of "" for success.
This commit is contained in:
2023-04-15 18:45:37 -07:00
parent 20e413742c
commit 3c30150a70
3 changed files with 72 additions and 44 deletions

View File

@@ -152,6 +152,12 @@ namespace SBF {
/// @return True if left is equal to right and false otherwise.
bool operator==(const AbilityType& left, const AbilityType& right);
/// @brief This function compares two AbilityType values for equality.
/// @param left The first AbilityType.
/// @param right The second AbilityType.
/// @return True if left and right are not equal and false otherwise.
bool operator!=(const AbilityType& left, const AbilityType& right);
/// @brief Fills the provided vector with all of the available ability groups.
/// @param abilities The vector to fill. It will be cleared before filling.
void FillAbilities(std::vector<AbilityType>& abilities);