Skip to main content

micro_banimate/
lib.rs

1pub mod definitions;
2pub mod directionality;
3pub mod loader;
4pub mod query;
5pub mod systems;
6
7mod plugin {
8	use bevy_app::{PluginGroup, PluginGroupBuilder};
9
10	use crate::loader;
11
12	pub struct BanimatePluginGroup;
13	impl PluginGroup for BanimatePluginGroup {
14		fn build(self) -> PluginGroupBuilder {
15			let mut group =
16				PluginGroupBuilder::start::<Self>().add(super::systems::AnimationSystemsPlugin);
17
18			#[cfg(any(feature = "json_loader", feature = "toml_loader"))]
19			{
20				group = group.add(loader::AnimationLoadersPlugin);
21			}
22
23			group
24		}
25	}
26}
27
28pub use plugin::BanimatePluginGroup;