From b3d9ffe8107bd7e0989c1fed2e5bdf31037134bb Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 5 Jun 2022 20:38:18 -0500 Subject: begin adding logical map shapes --- src/Map/Node.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/Map/Node.js (limited to 'src/Map/Node.js') 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; + } +} -- cgit v1.2.1