osb/source/game/items/StarCodexItem.hpp
2023-06-20 14:33:09 +10:00

31 lines
670 B
C++

#ifndef STAR_CODEX_ITEM_HPP
#define STAR_CODEX_ITEM_HPP
#include "StarItem.hpp"
#include "StarPlayerCodexes.hpp"
#include "StarSwingableItem.hpp"
namespace Star {
class CodexItem : public Item, public SwingableItem {
public:
CodexItem(Json const& config, String const& directory, Json const& data);
virtual ItemPtr clone() const override;
virtual List<Drawable> drawables() const override;
virtual void fireTriggered() override;
virtual List<Drawable> iconDrawables() const override;
virtual List<Drawable> dropDrawables() const override;
private:
String m_codexId;
List<Drawable> m_iconDrawables;
List<Drawable> m_worldDrawables;
};
}
#endif