]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/aos-tracker/Chapel.js
add basic map
[alttp.git] / resources / js / components / aos-tracker / Chapel.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 Chapel = ({ x, y }) =>
9         <Region name="chapel" x={x} y={y}>
10                 <Room x={3} y={0}>
11                         <Cell x={0} y={0} left="solid" top="solid" />
12                         <Cell x={1} y={0} top="solid" />
13                         <Cell x={2} y={0} top="solid" />
14                         <Cell x={3} y={0} right="solid" top="solid" />
15                         <Cell x={0} y={1} left="solid" />
16                         <Cell x={1} y={1} />
17                         <Cell x={2} y={1} />
18                         <Cell x={3} y={1} right="solid" />
19                         <Cell x={0} y={2} left="solid" />
20                         <Cell x={1} y={2} />
21                         <Cell x={2} y={2} />
22                         <Cell x={3} y={2} right="solid" />
23                         <Cell x={0} y={3} bottom="solid" left="solid" />
24                         <Cell x={1} y={3} bottom="door" />
25                         <Cell x={2} y={3} bottom="door" />
26                         <Cell x={3} y={3} bottom="solid" right="solid" />
27                 </Room>
28                 <Room x={3} y={4}>
29                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
30                         <Cell x={1} y={0} bottom="solid" top="door" />
31                         <Cell x={2} y={0} bottom="solid" top="door" />
32                         <Cell x={3} y={0} bottom="solid" right="door" top="solid" />
33                 </Room>
34                 <Room type="transition left" x={2} y={4}>
35                         <Cell bottom="solid" left="door" right="door" top="solid" />
36                 </Room>
37                 <Room x={7} y={2}>
38                         <Cell x={0} y={0} left="solid" top="solid" />
39                         <Cell x={1} y={0} top="solid" />
40                         <Cell x={2} y={0} right="solid" top="solid" />
41                         <Cell x={0} y={1} bottom="solid" left="solid" />
42                         <Cell x={1} y={1} bottom="door" />
43                         <Cell x={2} y={1} bottom="solid" right="solid" />
44                 </Room>
45                 <Room x={7} y={4}>
46                         <Cell x={0} y={0} left="door" top="solid" />
47                         <Cell x={1} y={0} top="door" />
48                         <Cell x={2} y={0} right="solid" top="solid" />
49                         <Cell x={0} y={1} bottom="solid" left="solid" />
50                         <Cell x={1} y={1} />
51                         <Cell x={2} y={1} right="solid" />
52                         <Cell x={1} y={2} bottom="solid" left="solid" />
53                         <Cell x={2} y={2} bottom="door" right="solid" />
54                 </Room>
55                 <Room type="secret" x={7} y={6}>
56                         <Cell bottom="door" left="solid" right="solid" top="solid" />
57                 </Room>
58                 <Room type="teleporter" x={2} y={5}>
59                         <Cell bottom="solid" left="solid" right="door" top="solid" />
60                 </Room>
61                 <Room x={2} y={6}>
62                         <Cell bottom="solid" left="solid" right="door" top="solid" />
63                 </Room>
64                 <Room x={3} y={5}>
65                         <Cell x={0} y={0} left="door" top="solid" />
66                         <Cell x={1} y={0} right="solid" top="solid" />
67                         <Cell x={0} y={1} left="door" />
68                         <Cell x={1} y={1} right="solid" />
69                         <Cell x={0} y={2} bottom="solid" left="door" />
70                         <Cell x={1} y={2} bottom="solid" right="door" />
71                 </Room>
72                 <Room x={5} y={5}>
73                         <Cell x={0} y={0} left="solid" top="solid" />
74                         <Cell x={1} y={0} right="solid" top="solid" />
75                         <Cell x={0} y={1} left="solid" />
76                         <Cell x={1} y={1} right="solid" />
77                         <Cell x={0} y={2} left="door" />
78                         <Cell x={1} y={2} right="door" />
79                         <Cell x={0} y={3} bottom="solid" left="door" />
80                         <Cell x={1} y={3} bottom="solid" right="door" />
81                 </Room>
82                 <Room x={7} y={7}>
83                         <Cell bottom="solid" left="door" right="solid" top="door" />
84                 </Room>
85                 <Room x={7} y={8}>
86                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
87                         <Cell x={1} y={0} bottom="solid" right="door" top="solid" />
88                 </Room>
89                 <Room x={9} y={7}>
90                         <Cell x={0} y={0} left="door" right="solid" top="door" />
91                         <Cell x={0} y={1} bottom="solid" left="door" right="solid" />
92                 </Room>
93                 <Room type="save" x={8} y={7}>
94                         <Cell bottom="solid" left="solid" right="door" top="solid" />
95                 </Room>
96                 <Room x={2} y={8}>
97                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
98                         <Cell x={1} y={0} bottom="solid" top="solid" />
99                         <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
100                 </Room>
101                 <Room x={1} y={7}>
102                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
103                         <Cell x={1} y={0} bottom="solid" right="door" top="solid" />
104                 </Room>
105                 <Room x={0} y={7}>
106                         <Cell x={0} y={0} left="solid" right="door" top="solid" />
107                         <Cell x={0} y={1} bottom="solid" left="solid" right="door" />
108                 </Room>
109                 <Room x={1} y={8}>
110                         <Cell x={0} y={0} left="door" right="door" top="solid" />
111                         <Cell x={0} y={1} bottom="solid" left="solid" right="door" />
112                 </Room>
113                 <Room type="transition right" x={2} y={9}>
114                         <Cell bottom="solid" left="door" right="door" top="solid" />
115                 </Room>
116         </Region>;
117
118 Chapel.propTypes = {
119         x: PropTypes.number,
120         y: PropTypes.number,
121 };
122
123 export default Chapel;