veloren_voxygen_anim/quadruped_low/
beta.rs1use super::{super::Animation, QuadrupedLowSkeleton, SkeletonAttr, quadruped_low_beta};
2use common::states::utils::StageSection;
3pub struct BetaAnimation;
6
7impl Animation for BetaAnimation {
8 type Dependency<'a> = (f32, f32, StageSection, f32);
9 type Skeleton = QuadrupedLowSkeleton;
10
11 #[cfg(feature = "use-dyn-lib")]
12 const UPDATE_FN: &'static [u8] = b"quadruped_low_beta\0";
13
14 #[cfg_attr(feature = "be-dyn-lib", export_name = "quadruped_low_beta")]
15 fn update_skeleton_inner(
16 skeleton: &Self::Skeleton,
17 (_velocity, global_time, stage_section, timer): Self::Dependency<'_>,
18 anim_time: f32,
19 _rate: &mut f32,
20 s_a: &SkeletonAttr,
21 ) -> Self::Skeleton {
22 let mut next = (*skeleton).clone();
23
24 quadruped_low_beta(&mut next, s_a, stage_section, anim_time, global_time, timer);
25
26 next
27 }
28}