pub enum SurfaceClass {
Show 20 variants
Concrete,
Asphalt,
Stone,
Brick,
Tile,
Metal,
Wood,
Glass,
Plastic,
Rubber,
Fabric,
Grass,
Dirt,
Gravel,
Sand,
Mud,
Snow,
Ice,
Water,
Other,
}Expand description
What a surface is made of, generically (its feel, sound and grip), for every source and target: each source’s
lowering pass maps its own names here and each writer maps these to its target, never one game’s names to
another’s. Other: classified, and no class fits.
Closed on purpose: writers match it without a wildcard, so adding a class (with the evidence that a source has
such surfaces and a target treats them differently, its line in docs/SPEC.md and a core.surfaces VERSION bump)
fails to compile until every writer maps it.
Variants§
Concrete
Asphalt
Stone
Brick
Tile
Metal
Wood
Glass
Plastic
Rubber
Fabric
Grass
Dirt
Gravel
Sand
Mud
Snow
Ice
Water
Swimmable or wading surfaces.
Other
Implementations§
Source§impl SurfaceClass
impl SurfaceClass
Trait Implementations§
Source§impl Clone for SurfaceClass
impl Clone for SurfaceClass
impl Copy for SurfaceClass
Source§impl Debug for SurfaceClass
impl Debug for SurfaceClass
impl Eq for SurfaceClass
Source§impl Hash for SurfaceClass
impl Hash for SurfaceClass
Source§impl Ord for SurfaceClass
impl Ord for SurfaceClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SurfaceClass
impl PartialEq for SurfaceClass
Source§impl PartialOrd for SurfaceClass
impl PartialOrd for SurfaceClass
Source§impl Serialize for SurfaceClass
impl Serialize for SurfaceClass
impl StructuralPartialEq for SurfaceClass
Auto Trait Implementations§
impl Forget for SurfaceClass
impl Freeze for SurfaceClass
impl RefUnwindSafe for SurfaceClass
impl Send for SurfaceClass
impl Sync for SurfaceClass
impl Unpin for SurfaceClass
impl UnsafeUnpin for SurfaceClass
impl UnwindSafe for SurfaceClass
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.