mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
28 lines
801 B
Rust
28 lines
801 B
Rust
use super::{super::Animation, CharacterSkeleton, SkeletonAttr};
|
|
use common::states::utils::StageSection;
|
|
|
|
pub struct LeapAnimation;
|
|
|
|
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")]
|
|
fn update_skeleton_inner(
|
|
skeleton: &Self::Skeleton,
|
|
_stage_section: Self::Dependency<'_>,
|
|
_anim_time: f32,
|
|
rate: &mut f32,
|
|
_s_a: &SkeletonAttr,
|
|
) -> Self::Skeleton {
|
|
*rate = 1.0;
|
|
/* let mut next = */
|
|
(*skeleton).clone()
|
|
// next
|
|
}
|
|
}
|