Use vector instead of set for types.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-10-23 16:51:15 +02:00
parent de8b5de7b4
commit 1dc3aafd33
6 changed files with 10 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ namespace CreatureLib::Battling {
std::unique_ptr<Script> _status = nullptr;
ScriptSet _volatile = {};
std::unordered_set<uint8_t> _types;
std::vector<uint8_t> _types;
private:
void OnFaint();
@@ -115,7 +115,7 @@ namespace CreatureLib::Battling {
const ArbUt::StringView& GetActiveTalent() const;
[[nodiscard]] bool IsFainted() const noexcept;
[[nodiscard]] const std::unordered_set<uint8_t>& GetTypes() const noexcept;
[[nodiscard]] const std::vector<uint8_t>& GetTypes() const noexcept;
[[nodiscard]] bool HasType(uint8_t type) const noexcept;
uint32_t GetMaxHealth() const noexcept { return _boostedStats.GetHealth(); }