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