pub struct HorizonSpec {
pub base: HorizonBase,
pub ratio: Option<f64>,
pub rim_height: Option<i32>,
}Expand description
The horizon object form: a base plus that base’s params, all optional
with pinned defaults (horizon_defaults).
The valley surround generator carries a second flora and a second surface
palette (a cherry grove over minecraft:cherry_grove) and this struct
does not expose them. Every engine surface owes a gallery element in the
change that lands it; the element a second flora needs is a valley overlay,
and one is writable now that a one-area campaign’s single prefab states an
extent (crate::placement::Extent, DW0855) — the reason recorded here
was that no two-file overlay could ring a map, and that reason is spent.
What is left is that nothing has written the element, and a surface lands
with its element or it does not land. The shape is flat rather than
per-base tagged, and a param foreign to the declared base is refused
(DW0853) — so an ocean cannot quietly carry a rim_height that nothing
reads.
Fields§
§base: HorizonBaseThe base — what surrounds the map.
ratio: Option<f64>valley: the surround’s total footprint as a multiple of the map’s, on
each axis (2.0..=3.0, default 2.5).
rim_height: Option<i32>valley: crest height of the rim over the gap floor (16..=128,
default 48).
Trait Implementations§
Source§impl Clone for HorizonSpec
impl Clone for HorizonSpec
impl Copy for HorizonSpec
Source§impl Debug for HorizonSpec
impl Debug for HorizonSpec
Source§impl<'de> Deserialize<'de> for HorizonSpec
impl<'de> Deserialize<'de> for HorizonSpec
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>,
Source§impl JsonSchema for HorizonSpec
impl JsonSchema for HorizonSpec
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