UNPKG
platform-pixels-level-generator
Version:
latest (0.5.1)
0.5.1
0.5.0
A command line tool used to generate levels
platform-pixels-level-generator
/
Square.js
19 lines
(14 loc)
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"use strict"
;
class
Square
{
constructor
(
type
, meta
) {
this
.
type
=
type
;
this
.
meta
= meta || {}; }
is
(
type
) {
return
this
.
type
===
type
; }
isnt
(
type
) {
return
!
this
.
is
(
type
); } }
module
.
exports
=
Square
;