Struct skeletal_animation::controller::TransitionCondition
[−]
[src]
pub struct TransitionCondition { pub parameter: String, pub operator: Operator, pub value: f32, }
Representation of a condition to check for an AnimationTransition
Fields
parameter: String
The name of the controller parameter to compare with
operator: Operator
The comparision operator to use
value: f32
The constant value to compare with the controller parameter value
Methods
impl TransitionCondition
[src]
fn is_true(&self, parameters: &HashMap<String, f32>) -> bool
Returns true if the condition is satisfied
Trait Implementations
impl Debug for TransitionCondition
[src]
impl Clone for TransitionCondition
[src]
fn clone(&self) -> TransitionCondition
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Decodable for TransitionCondition
[src]
fn decode<__D: Decoder>(
__arg_0: &mut __D
) -> Result<TransitionCondition, __D::Error>
__arg_0: &mut __D
) -> Result<TransitionCondition, __D::Error>
Deserialize a value using a Decoder
.