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