mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-07-10 10:23:05 +00:00
Add tag enum
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
export const TAG = {
|
||||
DEFAULT: "default",
|
||||
TUFT: "tuft",
|
||||
};
|
||||
|
||||
class Layer {
|
||||
/**
|
||||
* @param {string[][]} pixels
|
||||
* @param {string} [tag]
|
||||
*/
|
||||
constructor(pixels, tag = "default") {
|
||||
constructor(pixels, tag = TAG.DEFAULT) {
|
||||
this.pixels = pixels;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user