diff options
author | sanine <sanine.not@pm.me> | 2022-06-05 20:38:18 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-06-05 20:38:18 -0500 |
commit | b3d9ffe8107bd7e0989c1fed2e5bdf31037134bb (patch) | |
tree | 6baaa464c8dd1e2b0e7cb4c31e897f6745edeb73 /src/Map/Node.js | |
parent | b9d4c658d3561106a452d8014c4d021fe175b759 (diff) |
begin adding logical map shapes
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; + } +} |