From 8f5e6d1e73f16e3cdd523f961d06e4b4eb5a8cef Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 25 Aug 2017 21:10:40 +0200 Subject: Implement wall drawing --- src/components/map/groups/RoomGroup.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/components/map/groups') 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 => ( ))} + {deriveWallLocations(room).map((wallSegment, index) => ( + + ))} ); -- cgit v1.2.3