commit cb981b47
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