git repos / saland

commit cb981b47

Poul Sander · 2022-10-17 14:27
cb981b473150b0ae8419734337cad6f68e85aeaf patch · browse files
parent fce9f5774ff69ade4d356c1c5c6ff122681a5f05

Add spells

Changed files

A src/saland/model/spells.cpp
M src/saland/model/spells.hpp before
diff --git a/src/saland/model/spells.cpp b/src/saland/model/spells.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/saland/model/spells.cpp
diff --git a/src/saland/model/spells.hpp b/src/saland/model/spells.hpp index 5cbf9de..4357c12 100644 --- a/src/saland/model/spells.hpp +++ b/src/saland/model/spells.hpp
@@ -36,4 +36,12 @@ struct Spell {
SpellCursorType type = SpellCursorType::dot;
};
+class SpellHolder {
+ std::vector<Spell> spells;
+ public:
+ size_t get_spell_count() const;
+ const Spell& get_spell(int index) const;
+ const Spell& get_spell_by_name(const std::string&) const;
+};
+
#endif //MODEL_SPELLS_HPP
\ No newline at end of file