Struct Reader

Struct Documentation

struct Reader

Parse version 2.0 sprite/tileset manifests into backend-independent definitions.

Texture paths resolve from the enclosing graphics directory. Duplicate IDs across documents and image bounds are checked by Loader after it has collected the full asset set.

Public Static Functions

static Graphics load(const std::filesystem::path &file)

Declaration: [[nodiscard]]

static Graphics parse(std::istream &input, const std::filesystem::path &source)

Declaration: [[nodiscard]]

static CE::Assets::Shaders::Manifest load_shader(const std::filesystem::path &file)

Declaration: [[nodiscard]]

static CE::Assets::Shaders::Manifest parse_shader(std::istream &input, const std::filesystem::path &source)

Declaration: [[nodiscard]]

static std::vector<Graphics> load_graphics(const CE::Assets::Loading::FileRegistry &files)

Declaration: [[nodiscard]]

static Definitions load_graphics_definitions(const CE::Assets::Loading::FileRegistry &files, const std::vector<std::filesystem::path> &indexes = {})

Declaration: [[nodiscard]]