mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-11 22:50:08 +00:00
cargo fmt
This commit is contained in:
@@ -35,8 +35,7 @@ use fyrox_core::algebra::{Quaternion, UnitQuaternion};
|
||||
|
||||
/// The kind of track output value, the animation system works only with numeric properties and the number
|
||||
/// of variants is small.
|
||||
#[derive(Clone, Copy, Debug, Visit, Reflect, PartialEq, Eq)]
|
||||
#[derive(Default)]
|
||||
#[derive(Clone, Copy, Debug, Visit, Reflect, PartialEq, Eq, Default)]
|
||||
pub enum TrackValueKind {
|
||||
/// A real number. Requires only 1 parametric curve.
|
||||
Real,
|
||||
@@ -79,7 +78,6 @@ impl TrackValueKind {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Interpolation mode for track data.
|
||||
#[derive(Visit, Reflect, Debug, Clone, Default, PartialEq)]
|
||||
pub enum InterpolationMode {
|
||||
|
||||
@@ -46,8 +46,9 @@ pub trait SpriteSheetTexture: PartialEq + Clone + Visit + Reflect {}
|
||||
impl<T: PartialEq + Clone + Visit + Reflect> SpriteSheetTexture for T {}
|
||||
|
||||
/// Animation playback status.
|
||||
#[derive(Visit, Reflect, Copy, Clone, Eq, PartialEq, Debug, AsRefStr, EnumString, VariantNames)]
|
||||
#[derive(Default)]
|
||||
#[derive(
|
||||
Visit, Reflect, Copy, Clone, Eq, PartialEq, Debug, AsRefStr, EnumString, VariantNames, Default,
|
||||
)]
|
||||
pub enum Status {
|
||||
/// Animation is playing.
|
||||
Playing,
|
||||
@@ -63,7 +64,6 @@ pub enum Status {
|
||||
|
||||
uuid_provider!(Status = "74a31122-a7a8-476c-ab87-77e53cf0523c");
|
||||
|
||||
|
||||
/// Some animation event.
|
||||
#[derive(Visit, Reflect, Clone, Debug, Eq, PartialEq)]
|
||||
#[non_exhaustive]
|
||||
|
||||
@@ -38,8 +38,7 @@ use std::{
|
||||
};
|
||||
|
||||
/// An actual type of a property value.
|
||||
#[derive(Visit, Reflect, Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
||||
#[derive(Default)]
|
||||
#[derive(Visit, Reflect, Clone, Copy, Debug, PartialEq, Eq, Hash, Default)]
|
||||
pub enum ValueType {
|
||||
/// `bool`
|
||||
Bool,
|
||||
@@ -194,7 +193,6 @@ impl ValueType {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// A real value that can be produced by an animation track. Animations always operate on real numbers (`f32`) for any kind
|
||||
/// of machine numeric types (including `bool`). This is needed to be able to blend values; final blending result is then
|
||||
/// converted to an actual machine type of a target property.
|
||||
|
||||
Reference in New Issue
Block a user