osb/source/game/items/StarCodexItem.hpp
2024-02-25 15:46:47 +01:00

28 lines
619 B
C++

#pragma once
#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;
};
}