2024-02-25 14:46:47 +00:00
|
|
|
#pragma once
|
2023-06-20 04:33:09 +00:00
|
|
|
|
|
|
|
#include "StarJson.hpp"
|
|
|
|
|
|
|
|
namespace Star {
|
|
|
|
|
|
|
|
STAR_CLASS(Codex);
|
|
|
|
|
|
|
|
class Codex {
|
|
|
|
public:
|
|
|
|
Codex(Json const& config, String const& directory);
|
|
|
|
Json toJson() const;
|
|
|
|
|
|
|
|
String id() const;
|
|
|
|
String species() const;
|
|
|
|
String title() const;
|
|
|
|
String description() const;
|
|
|
|
String icon() const;
|
|
|
|
String page(size_t pageNum) const;
|
|
|
|
List<String> pages() const;
|
|
|
|
size_t pageCount() const;
|
|
|
|
Json itemConfig() const;
|
|
|
|
String directory() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
String m_id;
|
|
|
|
String m_species;
|
|
|
|
String m_title;
|
|
|
|
String m_description;
|
|
|
|
String m_icon;
|
|
|
|
List<String> m_pages;
|
|
|
|
Json m_itemConfig;
|
|
|
|
String m_directory;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|