pub const TERRAINS: [&str; 14] = [
"flat",
"ledge",
"cliff",
"slope",
"dune",
"shore",
"rooftop",
"cave_floor",
"water",
"indoor",
"ridge",
"trail",
"path",
"dune_trail",
];
pub const SURFACES: [&str; 8] = [
"rock", "snow", "sand", "grass", "wood", "roof", "water", "ice",
];
pub const WEATHERS: [&str; 28] = [
"none",
"dust",
"snow",
"rain",
"fireflies",
"leaves",
"stars",
"confetti",
"petals",
"fog",
"blizzard",
"ash",
"sparkle",
"birds",
"butterflies",
"seeds",
"shooting_stars",
"spray",
"sandstorm",
"tumbleweed",
"cinders",
"sky_lanterns",
"fireworks",
"spores",
"wisps",
"bats",
"spindrift",
"dragonflies",
];
pub const LOCAL_WEATHERS: [&str; 11] = [
"spray",
"sandstorm",
"tumbleweed",
"cinders",
"sky_lanterns",
"fireworks",
"spores",
"wisps",
"bats",
"spindrift",
"dragonflies",
];
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct ArchetypeInfo {
pub id: &'static str,
pub implemented: bool,
pub terrain: &'static [&'static str],
pub surface: &'static [&'static str],
pub weather: &'static [&'static str],
pub platforms: &'static [&'static str],
pub sky: bool,
pub silhouettes: bool,
}
pub const ARCHETYPE_INFO: [ArchetypeInfo; 37] = [
ArchetypeInfo {
id: "canyon",
implemented: true,
terrain: &["ledge", "cliff"],
surface: &["rock"],
weather: &["none", "dust", "birds", "tumbleweed"],
platforms: &["rock_ledge"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "forest",
implemented: true,
terrain: &["flat", "ledge", "path"],
surface: &["grass", "wood"],
weather: &[
"none",
"fireflies",
"leaves",
"rain",
"fog",
"petals",
"birds",
"butterflies",
],
platforms: &["log", "tree_branch"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "mountains",
implemented: true,
terrain: &["ledge", "cliff", "slope", "ridge"],
surface: &["rock", "snow"],
weather: &[
"none",
"snow",
"stars",
"fog",
"blizzard",
"birds",
"shooting_stars",
"spindrift",
],
platforms: &["rock_ledge"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "shore",
implemented: true,
terrain: &["shore", "water", "flat"],
surface: &["sand", "wood", "water"],
weather: &[
"none",
"rain",
"stars",
"fog",
"birds",
"shooting_stars",
"spray",
],
platforms: &["pier"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "city_rooftops",
implemented: true,
terrain: &["rooftop", "flat"],
surface: &["roof"],
weather: &[
"none",
"rain",
"stars",
"confetti",
"birds",
"shooting_stars",
"fireworks",
],
platforms: &["rooftop_edge"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "desert",
implemented: true,
terrain: &["dune", "slope", "flat", "dune_trail"],
surface: &["sand"],
weather: &[
"none",
"dust",
"stars",
"birds",
"shooting_stars",
"sandstorm",
"tumbleweed",
],
platforms: &["dune_crest"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "snowfield",
implemented: true,
terrain: &["slope", "flat", "ledge", "trail"],
surface: &["snow", "ice"],
weather: &[
"none",
"snow",
"stars",
"blizzard",
"sparkle",
"shooting_stars",
"spindrift",
],
platforms: &["ice_shelf"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "night_sky",
implemented: true,
terrain: &["ledge", "flat"],
surface: &["rock", "grass"],
weather: &["none", "stars", "shooting_stars"],
platforms: &["floating_island", "rock_ledge"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "cave",
implemented: true,
terrain: &["cave_floor", "ledge"],
surface: &["rock"],
weather: &["none", "dust", "bats"],
platforms: &["rock_ledge"],
sky: false,
silhouettes: false,
},
ArchetypeInfo {
id: "meadow",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["grass"],
weather: &[
"none",
"petals",
"leaves",
"fireflies",
"rain",
"fog",
"stars",
"birds",
"butterflies",
"seeds",
"shooting_stars",
"dragonflies",
],
platforms: &["grassy_knoll"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "lake",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["grass", "rock"],
weather: &[
"none",
"fog",
"rain",
"fireflies",
"snow",
"stars",
"birds",
"butterflies",
"seeds",
"shooting_stars",
"dragonflies",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "volcano",
implemented: true,
terrain: &["ledge", "flat"],
surface: &["rock"],
weather: &["none", "ash", "stars", "shooting_stars", "cinders"],
platforms: &["rock_ledge"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "islands",
implemented: true,
terrain: &["flat"],
surface: &["sand"],
weather: &["none", "rain", "stars", "birds", "shooting_stars", "spray"],
platforms: &["sand_spit"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "lunar",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["rock"],
weather: &["none", "stars", "shooting_stars"],
platforms: &["crater_rim"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "bamboo",
implemented: true,
terrain: &["flat"],
surface: &["grass"],
weather: &["none", "rain", "fog", "fireflies", "leaves", "butterflies"],
platforms: &["mossy_bank"],
sky: false,
silhouettes: false,
},
ArchetypeInfo {
id: "waterfall",
implemented: true,
terrain: &["ledge", "flat"],
surface: &["rock", "grass"],
weather: &[
"none",
"fog",
"rain",
"petals",
"fireflies",
"stars",
"birds",
"butterflies",
"shooting_stars",
"spray",
"dragonflies",
],
platforms: &["rock_ledge"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "countryside",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["grass"],
weather: &[
"none",
"rain",
"fog",
"leaves",
"petals",
"fireflies",
"snow",
"stars",
"birds",
"butterflies",
"seeds",
"shooting_stars",
"dragonflies",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "ruins",
implemented: true,
terrain: &["ledge", "flat"],
surface: &["rock", "grass"],
weather: &[
"none",
"fog",
"leaves",
"dust",
"fireflies",
"stars",
"birds",
"butterflies",
"seeds",
"shooting_stars",
"bats",
],
platforms: &["rock_ledge"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "savanna",
implemented: true,
terrain: &["flat", "dune", "ledge"],
surface: &["sand", "grass"],
weather: &[
"none",
"dust",
"rain",
"stars",
"birds",
"seeds",
"shooting_stars",
"sandstorm",
"tumbleweed",
],
platforms: &["earth_bank"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "swamp",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["grass", "wood"],
weather: &[
"none",
"fog",
"rain",
"fireflies",
"stars",
"birds",
"butterflies",
"shooting_stars",
"spores",
"wisps",
"dragonflies",
],
platforms: &["mossy_bank"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "mushrooms",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["grass"],
weather: &[
"none",
"fireflies",
"sparkle",
"fog",
"stars",
"shooting_stars",
"butterflies",
"seeds",
"spores",
],
platforms: &["mossy_bank"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "crystals",
implemented: true,
terrain: &["cave_floor", "ledge"],
surface: &["rock"],
weather: &["none", "sparkle", "dust", "spores"],
platforms: &["rock_ledge"],
sky: false,
silhouettes: false,
},
ArchetypeInfo {
id: "great_tree",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["grass", "wood"],
weather: &[
"none",
"fireflies",
"leaves",
"petals",
"rain",
"fog",
"stars",
"butterflies",
"birds",
"seeds",
"shooting_stars",
"sky_lanterns",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "wizard_tower",
implemented: true,
terrain: &["ledge", "cliff", "flat"],
surface: &["rock", "grass"],
weather: &[
"none",
"stars",
"fog",
"sparkle",
"shooting_stars",
"snow",
"rain",
"birds",
"bats",
],
platforms: &["rock_ledge"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "standing_stones",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["grass", "rock"],
weather: &[
"none",
"fog",
"stars",
"rain",
"snow",
"fireflies",
"shooting_stars",
"leaves",
"birds",
"wisps",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "lantern_lake",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["grass", "wood"],
weather: &[
"none",
"fireflies",
"stars",
"fog",
"petals",
"shooting_stars",
"seeds",
"sky_lanterns",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: false,
},
ArchetypeInfo {
id: "interior",
implemented: true,
terrain: &["indoor"],
surface: &["wood"],
weather: &["none"],
platforms: &["floor"],
sky: false,
silhouettes: false,
},
ArchetypeInfo {
id: "lighthouse",
implemented: true,
terrain: &["ledge", "cliff", "flat"],
surface: &["rock", "grass"],
weather: &[
"none",
"fog",
"rain",
"birds",
"stars",
"shooting_stars",
"spray",
],
platforms: &["rock_ledge"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "harbour",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["rock", "wood"],
weather: &[
"none",
"rain",
"fog",
"stars",
"birds",
"snow",
"shooting_stars",
"sky_lanterns",
"fireworks",
],
platforms: &["stone_quay"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "zen_garden",
implemented: true,
terrain: &["flat"],
surface: &["grass", "sand"],
weather: &[
"none",
"petals",
"leaves",
"rain",
"fog",
"fireflies",
"stars",
"butterflies",
"snow",
"shooting_stars",
"dragonflies",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "observatory",
implemented: true,
terrain: &["ledge", "cliff", "slope"],
surface: &["rock", "snow"],
weather: &[
"none",
"stars",
"shooting_stars",
"snow",
"fog",
"birds",
"spindrift",
],
platforms: &["rock_ledge"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "oasis",
implemented: true,
terrain: &["dune", "flat", "slope"],
surface: &["sand", "grass"],
weather: &[
"none",
"dust",
"stars",
"birds",
"shooting_stars",
"sandstorm",
],
platforms: &["dune_crest"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "windmills",
implemented: true,
terrain: &["flat"],
surface: &["grass"],
weather: &[
"none",
"birds",
"butterflies",
"petals",
"rain",
"fog",
"seeds",
"stars",
"shooting_stars",
"dragonflies",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "fjord",
implemented: true,
terrain: &["ledge", "cliff", "flat"],
surface: &["rock", "grass"],
weather: &[
"none",
"fog",
"rain",
"snow",
"stars",
"birds",
"shooting_stars",
"spray",
"spindrift",
],
platforms: &["rock_ledge"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "viaduct",
implemented: true,
terrain: &["ledge", "flat"],
surface: &["rock", "grass"],
weather: &[
"none",
"fog",
"rain",
"leaves",
"snow",
"stars",
"birds",
"butterflies",
"seeds",
"shooting_stars",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "shrine",
implemented: true,
terrain: &["flat", "ledge"],
surface: &["rock", "grass", "wood"],
weather: &[
"none",
"petals",
"leaves",
"rain",
"fog",
"fireflies",
"snow",
"stars",
"birds",
"butterflies",
"shooting_stars",
"sky_lanterns",
],
platforms: &["rock_ledge"],
sky: true,
silhouettes: true,
},
ArchetypeInfo {
id: "greenhouse",
implemented: true,
terrain: &["flat"],
surface: &["grass", "rock"],
weather: &[
"none",
"rain",
"fog",
"petals",
"leaves",
"fireflies",
"snow",
"stars",
"birds",
"butterflies",
"seeds",
"shooting_stars",
"dragonflies",
],
platforms: &["grassy_bank"],
sky: true,
silhouettes: true,
},
];
pub fn archetype(id: &str) -> Option<&'static ArchetypeInfo> {
ARCHETYPE_INFO.iter().find(|a| a.id == id)
}