From 927e065f9829045247be7c0b3296408b6f577c1f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 12 Jun 2022 13:44:58 +0200 Subject: feat: add reading RLE files --- src/game/RLE_reader.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/game/RLE_reader.hpp (limited to 'src/game/RLE_reader.hpp') diff --git a/src/game/RLE_reader.hpp b/src/game/RLE_reader.hpp new file mode 100644 index 0000000..797575e --- /dev/null +++ b/src/game/RLE_reader.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include "interfaces/RLE_reader.hpp" +#include "interfaces/matrix.hpp" + +#include + +#include +#include + +class RLEReader + : public IRLEReader, + public yacppdic:: + AutoWirable> +{ +public: + explicit RLEReader(const IMatrixFactory &matrix_factory) noexcept; + + [[nodiscard]] auto read_RLE_file(const std::filesystem::path &path) const + -> std::unique_ptr> override; + +private: + IMatrixFactory _matrix_factory; +}; -- cgit v1.2.3-18-g5258