summaryrefslogtreecommitdiff
path: root/src/components/map/groups
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-25 21:10:40 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:44 +0200
commit8f5e6d1e73f16e3cdd523f961d06e4b4eb5a8cef (patch)
tree57cafd6d8bf42f804da8e2246f64c43a1c52b100 /src/components/map/groups
parentc47a27b826f7d76410308a4151611a366f9eaf46 (diff)
Implement wall drawing
Diffstat (limited to 'src/components/map/groups')
-rw-r--r--src/components/map/groups/RoomGroup.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/map/groups/RoomGroup.js b/src/components/map/groups/RoomGroup.js
index 28240d77..5f349e3c 100644
--- a/src/components/map/groups/RoomGroup.js
+++ b/src/components/map/groups/RoomGroup.js
@@ -1,6 +1,8 @@
import React from "react";
import {Group} from "react-konva";
import Shapes from "../../../shapes/index";
+import {deriveWallLocations} from "../../../util/tile-calculations";
+import WallSegment from "../elements/WallSegment";
import TileGroup from "./TileGroup";
const RoomGroup = ({room}) => (
@@ -8,6 +10,9 @@ const RoomGroup = ({room}) => (
{room.tiles.map(tile => (
<TileGroup key={tile.id} tile={tile}/>
))}
+ {deriveWallLocations(room).map((wallSegment, index) => (
+ <WallSegment key={index} wallSegment={wallSegment}/>
+ ))}
</Group>
);