pub enum HorizonBase {
Void,
Ocean,
Valley,
}Expand description
What surrounds the map.
One enumeration of bases, reachable two ways. The shorthand
horizon: "ocean" and the object form horizon: {base: "ocean"} name this
same variant, which is what stops a base from existing in one spelling and
not the other. A separate list of “names” beside this one would be two
enumerations of the same thing, and the second base added would land in
whichever of them its author was looking at.
What is deliberately NOT here is a name that stands for a base plus a set of
params. Such a name reads as a thing, and the whole claim of this design is
that it is not one — it is a base with params set. A spelling that hides
which params it sets makes that claim unverifiable by looking at the
document, and buys a few saved keystrokes for it. Each base carries its own params on
HorizonSpec, and a param foreign to the declared base is refused rather
than ignored.
Variants§
Void
Void superflat; no surround. The default.
Ocean
Pinned water superflat, sea level 62; no surround.
Valley
A mountain annulus around a flat gap floor, with void ambient below the tile skirt. The one base that generates terrain.
Implementations§
Source§impl HorizonBase
impl HorizonBase
Trait Implementations§
Source§impl Clone for HorizonBase
impl Clone for HorizonBase
impl Copy for HorizonBase
Source§impl Debug for HorizonBase
impl Debug for HorizonBase
Source§impl Default for HorizonBase
impl Default for HorizonBase
Source§impl<'de> Deserialize<'de> for HorizonBase
impl<'de> Deserialize<'de> for HorizonBase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for HorizonBase
Source§impl JsonSchema for HorizonBase
impl JsonSchema for HorizonBase
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more