pub struct Composition {
pub horizon_pm: u32,
pub focus_x_pm: u32,
pub gap_pm: u32,
pub shape_pow_pm: u32,
pub platform_margin_pm: u32,
pub cliff_layers: u32,
pub prop_left: bool,
pub motion_speed_cc: u32,
pub pace_half_pm: u32,
}Expand description
Composition variables. Fractions are stored as integer per-mille so the recipe JSON is exact and stable.
Fields§
§horizon_pm: u32Platform top (the horizon line), per-mille of height from the top.
focus_x_pm: u32Horizontal centre of the focal character, per-mille of width.
gap_pm: u32Width of the open centre between the canyon walls, per-mille.
shape_pow_pm: u32Exponent of the canyon wall profile, times 1000.
platform_margin_pm: u32Extra platform width on each side of the focal group, per-mille of height.
cliff_layers: u32Number of cliff layers behind the platform.
prop_left: boolMain prop on the left of the character (true) or the right.
motion_speed_cc: u32Movement speed in hundredths of a cell per second (0 when stationary).
pace_half_pm: u32Half the pacing range, per-mille of the short side (0 when not pacing).
Trait Implementations§
Source§impl Clone for Composition
impl Clone for Composition
Source§impl Debug for Composition
impl Debug for Composition
Source§impl<'de> Deserialize<'de> for Composition
impl<'de> Deserialize<'de> for Composition
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Composition
Source§impl PartialEq for Composition
impl PartialEq for Composition
Source§impl Serialize for Composition
impl Serialize for Composition
impl StructuralPartialEq for Composition
Auto Trait Implementations§
impl Forget for Composition
impl Freeze for Composition
impl Move for Composition
impl RefUnwindSafe for Composition
impl Send for Composition
impl Sync for Composition
impl Unpin for Composition
impl UnsafeUnpin for Composition
impl UnwindSafe for Composition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more