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