2024-01-27 02:54:38 +00:00
|
|
|
use super::{super::Animation, CharacterSkeleton, SkeletonAttr};
|
|
|
|
use common::states::utils::StageSection;
|
2021-07-18 00:31:13 +00:00
|
|
|
|
2020-07-03 15:40:12 +00:00
|
|
|
pub struct LeapAnimation;
|
|
|
|
|
2024-01-27 02:54:38 +00:00
|
|
|
type LeapAnimationDependency = (StageSection,);
|
2020-07-03 15:40:12 +00:00
|
|
|
impl Animation for LeapAnimation {
|
2021-04-30 20:06:03 +00:00
|
|
|
type Dependency<'a> = LeapAnimationDependency;
|
2020-07-03 15:40:12 +00:00
|
|
|
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(
|
2020-07-03 15:40:12 +00:00
|
|
|
skeleton: &Self::Skeleton,
|
2024-01-27 02:54:38 +00:00
|
|
|
_stage_section: Self::Dependency<'_>,
|
|
|
|
_anim_time: f32,
|
2020-07-03 15:40:12 +00:00
|
|
|
rate: &mut f32,
|
2024-01-27 02:54:38 +00:00
|
|
|
_s_a: &SkeletonAttr,
|
2020-07-03 15:40:12 +00:00
|
|
|
) -> Self::Skeleton {
|
|
|
|
*rate = 1.0;
|
2024-01-27 02:54:38 +00:00
|
|
|
/* let mut next = */
|
|
|
|
(*skeleton).clone()
|
|
|
|
// next
|
2020-07-03 15:40:12 +00:00
|
|
|
}
|
|
|
|
}
|