CI / build-and-test (push) Successful in 1m30s
Reviewed-on: #45 Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
19 lines
470 B
Rust
19 lines
470 B
Rust
use bevy::prelude::*;
|
|
|
|
use crate::AppState;
|
|
|
|
pub mod battle_ui;
|
|
pub mod errors;
|
|
pub mod fighter_info;
|
|
|
|
#[derive(Default)]
|
|
pub struct InGameUIPlugin;
|
|
|
|
impl Plugin for InGameUIPlugin {
|
|
fn build(&self, app: &mut App) {
|
|
app.add_systems(OnEnter(AppState::InMatch), battle_ui::spawn_battle_ui)
|
|
.add_systems(OnExit(AppState::InMatch), battle_ui::cleanup_battle_ui)
|
|
.add_systems(PostUpdate, fighter_info::update_fighter_info_damage);
|
|
}
|
|
}
|