]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/aos-tracker/ForbiddenArea.js
add basic map
[alttp.git] / resources / js / components / aos-tracker / ForbiddenArea.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3
4 import Cell from './Cell';
5 import Region from './Region';
6 import Room from './Room';
7
8 const ForbiddenArea = ({ x, y }) =>
9         <Region name="forbidden-area" x={x} y={y}>
10                 <Room type="transition left" x={0} y={2}>
11                         <Cell bottom="solid" left="door" right="door" top="solid" />
12                 </Room>
13                 <Room x={1} y={2}>
14                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
15                         <Cell x={1} y={0} bottom="solid" top="solid" />
16                         <Cell x={2} y={0} bottom="solid" top="solid" />
17                         <Cell x={3} y={0} bottom="solid" right="door" top="solid" />
18                 </Room>
19                 <Room x={5} y={1}>
20                         <Cell x={0} y={0} left="solid" right="solid" top="door" />
21                         <Cell x={0} y={1} left="door" right="door" bottom="solid" />
22                 </Room>
23                 <Room x={5} y={0}>
24                         <Cell bottom="door" left="solid" right="door" top="solid" />
25                 </Room>
26                 <Room type="transition right" x={6} y={0}>
27                         <Cell bottom="solid" left="door" right="door" top="solid" />
28                 </Room>
29                 <Room x={6} y={2}>
30                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
31                         <Cell x={1} y={0} bottom="solid" top="solid" />
32                         <Cell x={2} y={0} bottom="solid" top="solid" />
33                         <Cell x={3} y={0} bottom="solid" top="solid" />
34                         <Cell x={4} y={0} bottom="door" right="solid" top="solid" />
35                 </Room>
36                 <Room x={10} y={3}>
37                         <Cell x={0} y={0} left="solid" top="door" />
38                         <Cell x={1} y={0} top="solid" />
39                         <Cell x={2} y={0} right="solid" top="solid" />
40                         <Cell x={0} y={1} bottom="solid" left="door" />
41                         <Cell x={1} y={1} bottom="solid" />
42                         <Cell x={2} y={1} bottom="solid" right="door" />
43                 </Room>
44                 <Room type="secret" x={9} y={4}>
45                         <Cell bottom="solid" left="solid" right="door" top="solid" />
46                 </Room>
47                 <Room x={13} y={4}>
48                         <Cell bottom="door" left="door" right="solid" top="solid" />
49                 </Room>
50                 <Room x={13} y={5}>
51                         <Cell x={0} y={0} left="solid" right="solid" top="door" />
52                         <Cell x={0} y={1} left="door" right="solid" bottom="solid" />
53                 </Room>
54                 <Room x={5} y={6}>
55                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
56                         <Cell x={1} y={0} bottom="solid" top="solid" />
57                         <Cell x={2} y={0} bottom="solid" top="solid" />
58                         <Cell x={3} y={0} bottom="solid" top="solid" />
59                         <Cell x={4} y={0} bottom="solid" top="solid" />
60                         <Cell x={5} y={0} bottom="solid" top="solid" />
61                         <Cell x={6} y={0} bottom="solid" top="solid" />
62                         <Cell x={7} y={0} bottom="solid" right="door" top="solid" />
63                 </Room>
64                 <Room x={4} y={5}>
65                         <Cell x={0} y={0} left="solid" right="door" top="solid" />
66                         <Cell x={0} y={1} left="solid" right="door" bottom="solid" />
67                 </Room>
68                 <Room x={5} y={5}>
69                         <Cell bottom="solid" left="door" right="solid" top="solid" />
70                 </Room>
71         </Region>;
72
73 ForbiddenArea.propTypes = {
74         x: PropTypes.number,
75         y: PropTypes.number,
76 };
77
78 export default ForbiddenArea;