Implements TryGet functions on several libraries.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-02-01 15:33:44 +01:00
parent dba271681d
commit bb9b9609a6
6 changed files with 36 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ namespace CreatureLib::Library {
_attacks.clear();
}
[[nodiscard]] bool TryGetAttack(const std::string& name, const AttackData*& move) const;
[[nodiscard]] const AttackData* GetAttack(const std::string& name) const;
[[nodiscard]] const AttackData* operator[](const std::string& name) const;