You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
456 B
34 lines
456 B
#pragma once
|
|
#include <iostream>
|
|
|
|
#include <experimental/filesystem>
|
|
#include <vector>
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
struct pattern_info {
|
|
|
|
std::string title;
|
|
std::string author;
|
|
std::string comments;
|
|
sf::Vector2i dimensions;
|
|
|
|
char *pattern;
|
|
|
|
};
|
|
|
|
class Decoder {
|
|
|
|
public:
|
|
|
|
Decoder();
|
|
~Decoder();
|
|
|
|
pattern_info decodePattern(std::string pattern);
|
|
std::vector<std::string> getPatternList();
|
|
|
|
private:
|
|
|
|
std::vector<std::string> pattern_list;
|
|
|
|
|
|
}; |