diff --git a/src/Library/AttackLibrary.hpp b/src/Library/AttackLibrary.hpp index 88ef428..805f6d4 100644 --- a/src/Library/AttackLibrary.hpp +++ b/src/Library/AttackLibrary.hpp @@ -27,6 +27,8 @@ namespace CreatureLib::Library { void LoadAttack(const std::string& name, const AttackData* attack); void DeleteAttack(const std::string& name); + + const std::unordered_map& GetIterator() { return _attacks; } }; } diff --git a/src/Library/CreatureData/CreatureSpecies.hpp b/src/Library/CreatureData/CreatureSpecies.hpp index 23455ea..86b8e11 100644 --- a/src/Library/CreatureData/CreatureSpecies.hpp +++ b/src/Library/CreatureData/CreatureSpecies.hpp @@ -43,6 +43,8 @@ namespace CreatureLib::Library { [[nodiscard]] const std::string& GetName() const; void SetVariant(const std::string& name, const SpeciesVariant* variant); + + const std::unordered_map& GetVariantsIterator() { return _variants; } }; } diff --git a/src/Library/ItemLibrary.hpp b/src/Library/ItemLibrary.hpp index a824467..a5909bd 100644 --- a/src/Library/ItemLibrary.hpp +++ b/src/Library/ItemLibrary.hpp @@ -21,6 +21,8 @@ namespace CreatureLib::Library { void LoadItem(const std::string& name, const Item* item); void DeleteItem(const std::string& name); + + const std::unordered_map& GetIterator() { return _items; } }; } diff --git a/src/Library/SpeciesLibrary.hpp b/src/Library/SpeciesLibrary.hpp index 9b8175f..a86d8af 100644 --- a/src/Library/SpeciesLibrary.hpp +++ b/src/Library/SpeciesLibrary.hpp @@ -28,6 +28,8 @@ namespace CreatureLib::Library { void DeleteSpecies(const std::string& name); size_t GetCount() const { return _species.size(); } + + const std::unordered_map& GetIterator() { return _species; } }; }