Struct FluidModel
#[non_exhaustive]pub struct FluidModel {
pub fluid: String,
pub still: Option<String>,
pub flowing: Option<String>,
pub overlay: Option<String>,
}Expand description
Atlas sprites to use for a world fluid during this resource load.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fluid: StringCanonical world fluid registry name.
still: Option<String>Surface-at-rest sprite; absent keeps the content look.
flowing: Option<String>Flowing and side sprite; absent uses the still sprite.
overlay: Option<String>Side sprite against glass or leaves; absent uses the flowing sprite.
Trait Implementations§
§impl Clone for FluidModel
impl Clone for FluidModel
§fn clone(&self) -> FluidModel
fn clone(&self) -> FluidModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FluidModel
impl Debug for FluidModel
§impl Default for FluidModel
impl Default for FluidModel
§fn default() -> FluidModel
fn default() -> FluidModel
Returns the “default value” for a type. Read more
impl Eq for FluidModel
§impl PartialEq for FluidModel
impl PartialEq for FluidModel
impl StructuralPartialEq for FluidModel
Auto Trait Implementations§
impl Freeze for FluidModel
impl RefUnwindSafe for FluidModel
impl Send for FluidModel
impl Sync for FluidModel
impl Unpin for FluidModel
impl UnsafeUnpin for FluidModel
impl UnwindSafe for FluidModel
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