veloren/voxygen/anim/src/character/leapmelee.rs

28 lines
801 B
Rust
Raw Normal View History

2024-01-27 02:54:38 +00:00
use super::{super::Animation, CharacterSkeleton, SkeletonAttr};
use common::states::utils::StageSection;
pub struct LeapAnimation;
2024-01-27 02:54:38 +00:00
type LeapAnimationDependency = (StageSection,);
impl Animation for LeapAnimation {
type Dependency<'a> = LeapAnimationDependency;
type Skeleton = CharacterSkeleton;
#[cfg(feature = "use-dyn-lib")]
const UPDATE_FN: &'static [u8] = b"character_leapmelee\0";
#[cfg_attr(feature = "be-dyn-lib", export_name = "character_leapmelee")]
2022-11-28 13:46:35 +00:00
fn update_skeleton_inner(
skeleton: &Self::Skeleton,
2024-01-27 02:54:38 +00:00
_stage_section: Self::Dependency<'_>,
_anim_time: f32,
rate: &mut f32,
2024-01-27 02:54:38 +00:00
_s_a: &SkeletonAttr,
) -> Self::Skeleton {
*rate = 1.0;
2024-01-27 02:54:38 +00:00
/* let mut next = */
(*skeleton).clone()
// next
}
}