diff options
Diffstat (limited to 'src/Map/Node.js')
-rw-r--r-- | src/Map/Node.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Map/Node.js b/src/Map/Node.js new file mode 100644 index 0000000..12308ca --- /dev/null +++ b/src/Map/Node.js @@ -0,0 +1,15 @@ +class PointNode { + constructor(x, y, attributes) { + this.setPosition(x, y); + this.attributes = attributes; + } + + setPosition(x, y) { + this.x = x; + this.y = y; + } + + setAttribute(key, value) { + this.attributes[key] = value; + } +} |