diff options
Diffstat (limited to 'src/components/map/groups')
| -rw-r--r-- | src/components/map/groups/RoomGroup.js | 5 |
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> ); |
