mirror of
https://github.com/Motschen/Adventura.git
synced 2025-12-16 03:45:10 +01:00
Support multiple and custom levels
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
#pragma once
|
||||
#include "identifier.hpp"
|
||||
#include "color.hpp"
|
||||
#include "blockSettings.hpp"
|
||||
|
||||
class Block {
|
||||
private:
|
||||
Identifier id = Identifier("adventure", "missing");
|
||||
char encoding;
|
||||
Color color;
|
||||
BlockSettings settings;
|
||||
|
||||
public:
|
||||
Block(Identifier id, char encoding, BlockSettings settings) {
|
||||
Block(Identifier id, char encoding, BlockSettings settings) : Block(id, encoding, Color::RESET, settings) {};
|
||||
Block(Identifier id, char encoding, Color color, BlockSettings settings) {
|
||||
this->id = id;
|
||||
this->encoding = encoding;
|
||||
this->color = color;
|
||||
this->settings = settings;
|
||||
};
|
||||
|
||||
@@ -21,6 +26,9 @@ public:
|
||||
Identifier getId() {
|
||||
return id;
|
||||
}
|
||||
Color getColor() {
|
||||
return color;
|
||||
}
|
||||
char getEncoding() {
|
||||
return encoding;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user