bevy_spinal 0.0.1

A Bevy plugin for 2D animation using Spine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::SpinalSkeleton;
use bevy::prelude::*;

/// Attached to an entity when the skeleton is ready to be set up.
///
/// It should be removed once the entity is ready to run the main system.
#[derive(Component)]
pub struct SkeletonReady;

#[derive(Component)]
pub struct SkeletonRoot(pub Entity);

#[derive(Component)]
pub struct SkeletonStateComponent {
    pub skeleton_handle: Handle<SpinalSkeleton>,
    pub state: spinal::DetachedSkeletonState,
}