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