1 import PropTypes from 'prop-types';
2 import React from 'react';
4 import Cell from './Cell';
5 import Region from './Region';
6 import Room from './Room';
8 const CastleCorridor = ({ x, y }) =>
9 <Region name="castle-corridor" x={x} y={y}>
11 <Cell x={0} y={0} left="solid" top="solid" />
12 <Cell x={1} y={0} right="solid" top="solid" />
13 <Cell x={0} y={1} left="solid" />
14 <Cell x={1} y={1} right="solid" />
15 <Cell x={0} y={2} bottom="solid" left="solid" />
16 <Cell x={1} y={2} bottom="solid" right="door" />
18 <Room type="teleporter" x={2} y={7}>
19 <Cell bottom="solid" left="solid" right="door" top="solid" />
22 <Cell x={0} y={0} left="solid" top="solid" />
23 <Cell x={1} y={0} right="solid" top="solid" />
24 <Cell x={0} y={1} left="solid" />
25 <Cell x={1} y={1} right="solid" />
26 <Cell x={0} y={2} left="solid" />
27 <Cell x={1} y={2} right="solid" />
28 <Cell x={0} y={3} bottom="door" left="door" />
29 <Cell x={1} y={3} bottom="solid" right="solid" />
32 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
33 <Cell x={1} y={0} bottom="solid" top="door" />
34 <Cell x={2} y={0} bottom="solid" top="solid" />
35 <Cell x={3} y={0} bottom="door" top="solid" />
36 <Cell x={4} y={0} bottom="solid" right="door" top="solid" />
39 <Cell x={0} y={0} left="door" top="solid" />
40 <Cell x={1} y={0} right="door" top="solid" />
41 <Cell x={0} y={1} bottom="solid" left="door" />
42 <Cell x={1} y={1} bottom="solid" right="door" />
44 <Room type="transition left" x={6} y={9}>
45 <Cell bottom="solid" left="door" right="door" top="solid" />
47 <Room type="save" x={9} y={9}>
48 <Cell bottom="solid" left="door" right="solid" top="solid" />
51 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
52 <Cell x={1} y={0} bottom="solid" top="solid" />
53 <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
56 <Cell x={0} y={0} left="solid" top="solid" />
57 <Cell x={1} y={0} right="solid" top="door" />
58 <Cell x={0} y={1} left="solid" />
59 <Cell x={1} y={1} right="solid" />
60 <Cell x={0} y={2} left="solid" />
61 <Cell x={1} y={2} right="solid" />
62 <Cell x={0} y={3} left="solid" />
63 <Cell x={1} y={3} right="solid" />
64 <Cell x={0} y={4} left="solid" />
65 <Cell x={1} y={4} right="solid" />
66 <Cell x={0} y={5} bottom="solid" left="door" />
67 <Cell x={1} y={5} bottom="solid" right="door" />
69 <Room type="transition left" x={12} y={2}>
70 <Cell bottom="solid" left="door" right="door" top="solid" />
73 <Cell bottom="door" left="door" right="solid" top="solid" />
76 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
77 <Cell x={1} y={0} bottom="solid" right="door" top="solid" />
79 <Room type="secret" x={15} y={9}>
80 <Cell bottom="solid" left="solid" right="door" top="solid" />
83 <Cell x={0} y={0} left="door" right="door" top="door" />
84 <Cell x={0} y={1} bottom="solid" left="door" right="door" />
86 <Room type="save" x={17} y={8}>
87 <Cell bottom="solid" left="door" right="solid" top="solid" />
90 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
91 <Cell x={1} y={0} bottom="solid" top="solid" />
92 <Cell x={2} y={0} bottom="solid" top="solid" />
93 <Cell x={3} y={0} bottom="solid" top="door" />
94 <Cell x={4} y={0} bottom="solid" right="door" top="solid" />
96 <Room type="transition right" x={22} y={9}>
97 <Cell bottom="solid" left="door" right="door" top="solid" />
100 <Cell x={0} y={0} left="solid" right="door" top="solid" />
101 <Cell x={0} y={1} bottom="door" left="solid" right="solid" />
104 <Cell bottom="solid" left="door" right="door" top="solid" />
106 <Room type="transition right" x={22} y={7}>
107 <Cell bottom="solid" left="door" right="door" top="solid" />
110 <Cell x={0} y={0} left="solid" right="door" top="solid" />
111 <Cell x={0} y={1} left="solid" right="solid" />
112 <Cell x={0} y={2} left="solid" right="solid" />
113 <Cell x={0} y={3} left="solid" right="solid" />
114 <Cell x={0} y={4} bottom="door" left="solid" right="solid" />
117 <Cell bottom="solid" left="door" right="door" top="solid" />
120 <Cell x={0} y={0} left="solid" top="door" />
121 <Cell x={1} y={0} top="solid" />
122 <Cell x={2} y={0} right="door" top="solid" />
123 <Cell x={0} y={1} bottom="solid" left="door" />
124 <Cell x={1} y={1} bottom="solid" />
125 <Cell x={2} y={1} bottom="solid" right="door" />
128 <Cell bottom="door" left="solid" right="door" top="solid" />
130 <Room type="transition right" x={19} y={1}>
131 <Cell bottom="solid" left="door" right="door" top="solid" />
134 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
135 <Cell x={1} y={0} bottom="solid" top="solid" />
136 <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
139 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
140 <Cell x={1} y={0} bottom="solid" top="solid" />
141 <Cell x={2} y={0} bottom="solid" top="solid" />
142 <Cell x={3} y={0} bottom="solid" top="solid" />
143 <Cell x={4} y={0} bottom="solid" top="solid" />
144 <Cell x={5} y={0} bottom="solid" top="solid" />
145 <Cell x={6} y={0} bottom="solid" right="door" top="solid" />
148 <Cell x={0} y={0} left="solid" top="solid" />
149 <Cell x={1} y={0} top="solid" />
150 <Cell x={2} y={0} right="door" top="solid" />
151 <Cell x={0} y={1} bottom="solid" left="door" />
152 <Cell x={1} y={1} bottom="solid" />
153 <Cell x={2} y={1} bottom="solid" right="door" />
156 <Cell bottom="solid" left="door" right="solid" top="solid" />
159 <Cell bottom="solid" left="door" right="solid" top="solid" />
162 <Cell x={0} y={0} left="solid" top="solid" />
163 <Cell x={1} y={0} right="solid" top="door" />
164 <Cell x={0} y={1} left="solid" />
165 <Cell x={1} y={1} right="solid" />
166 <Cell x={0} y={2} bottom="solid" left="door" />
167 <Cell x={1} y={2} bottom="solid" right="door" />
169 <Room type="transition left" x={28} y={0}>
170 <Cell bottom="solid" left="door" right="door" top="solid" />
173 <Cell bottom="door" left="door" right="solid" top="solid" />
176 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
177 <Cell x={1} y={0} bottom="solid" top="solid" />
178 <Cell x={2} y={0} bottom="solid" top="solid" />
179 <Cell x={3} y={0} bottom="solid" top="solid" />
180 <Cell x={4} y={0} bottom="solid" right="door" top="solid" />
183 <Cell x={0} y={0} left="solid" right="door" top="solid" />
184 <Cell x={0} y={1} bottom="solid" left="door" right="door" />
186 <Room type="transition right" x={36} y={2}>
187 <Cell bottom="solid" left="door" right="door" top="solid" />
190 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
191 <Cell x={1} y={0} bottom="solid" top="solid" />
192 <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
195 <Cell x={0} y={0} left="door" right="door" top="solid" />
196 <Cell x={0} y={1} bottom="solid" left="door" right="door" />
198 <Room type="save" x={40} y={3}>
199 <Cell bottom="solid" left="door" right="solid" top="solid" />
202 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
203 <Cell x={1} y={0} bottom="solid" right="door" top="solid" />
205 <Room type="transition right" x={42} y={4}>
206 <Cell bottom="solid" left="door" right="door" top="solid" />
209 <Cell x={0} y={0} left="solid" top="solid" />
210 <Cell x={1} y={0} right="door" top="solid" />
211 <Cell x={0} y={1} bottom="solid" left="door" />
212 <Cell x={1} y={1} bottom="solid" right="door" />
215 <Cell bottom="solid" left="door" right="solid" top="solid" />
218 <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
219 <Cell x={1} y={0} bottom="solid" top="solid" />
220 <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
223 <Cell bottom="solid" left="solid" right="door" top="solid" />
227 CastleCorridor.propTypes = {
232 export default CastleCorridor;