osb/source/game/items/StarCodexItem.hpp

28 lines
619 B
C++
Raw Normal View History

#pragma once
2023-06-20 04:33:09 +00:00
#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;
};
}