structural changes + a repo of a bunch of patterns to choose from
This commit is contained in:
34
include/Decoder.h
Normal file
34
include/Decoder.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#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;
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user