Better handling of filling empty slots.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -15,6 +15,10 @@ namespace CreatureLib::Battling {
|
||||
uint8_t GetSideIndex() const { return _side; }
|
||||
|
||||
uint8_t GetCreatureIndex() const { return _creature; }
|
||||
|
||||
bool operator==(const CreatureIndex& rhs) const { return (_side == rhs._side) && (_creature == rhs._creature); }
|
||||
|
||||
bool operator!=(const CreatureIndex& rhs) const { return !operator==(rhs); }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user