use crate::app_state::overworld::OverworldUpdate;
use bevy::app::{App, Plugin};
use bevy::prelude::*;
pub(crate) mod animation;
pub(crate) mod components;
pub(crate) mod systems;
pub struct CharacterPlugin;
impl Plugin for CharacterPlugin {
fn build(&self, app: &mut App) {
use systems::*;
app.add_systems(
Update,
(
update_walking_system,
update_running_system,
animation::character_animation_system,
)
.in_set(MovementSet)
.in_set(OverworldUpdate),
);
}
}
#[derive(SystemSet, Debug, Hash, PartialEq, Eq, Clone)]
pub struct MovementSet;