2024-02-25 14:46:47 +00:00
|
|
|
#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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|