honeytree_calc/htree/
tree.rs

1//! # Honey tree data
2//!
3//! Module that contains structs and data related to honey trees.
4
5///
6/// Constant that holds all existing honey trees.
7///
8pub const HONEY_TREES: [HoneyTree; 21] = [
9    HoneyTree {
10        location: "Route 205 south",
11    },
12    HoneyTree {
13        location: "Route 205 north",
14    },
15    HoneyTree {
16        location: "Route 206",
17    },
18    HoneyTree {
19        location: "Route 207",
20    },
21    HoneyTree {
22        location: "Route 208",
23    },
24    HoneyTree {
25        location: "Route 209",
26    },
27    HoneyTree {
28        location: "Route 210 south",
29    },
30    HoneyTree {
31        location: "Route 210 north",
32    },
33    HoneyTree {
34        location: "Route 211 east",
35    },
36    HoneyTree {
37        location: "Route 212 north",
38    },
39    HoneyTree {
40        location: "Route 212 south",
41    },
42    HoneyTree {
43        location: "Route 213",
44    },
45    HoneyTree {
46        location: "Route 214",
47    },
48    HoneyTree {
49        location: "Route 215",
50    },
51    HoneyTree {
52        location: "Route 218",
53    },
54    HoneyTree {
55        location: "Route 221",
56    },
57    HoneyTree {
58        location: "Route 222",
59    },
60    HoneyTree {
61        location: "Valley Windworks",
62    },
63    HoneyTree {
64        location: "Eterna Forest (exterior)",
65    },
66    HoneyTree {
67        location: "Fuego Ironworks",
68    },
69    HoneyTree {
70        location: "Floaroma Meadow",
71    },
72];
73
74///
75/// Struct that holds a honey tree.
76/// A honey tree is defined by is in-game location.
77///
78/// # Examples
79/// ```
80/// use honeytree_calc::htree::tree::HoneyTree;
81/// let my_tree = HoneyTree {location: "Route 201"};
82/// println!("{}", my_tree.location);
83/// ```
84pub struct HoneyTree<'a> {
85    pub location: &'a str,
86}