Most important modules

This commit is contained in:
Rendo 2026-05-04 23:52:04 +05:00
commit 52c98da1fd
6 changed files with 66 additions and 1 deletions

9
src/casting/mod.rs Normal file
View file

@ -0,0 +1,9 @@
use bevy::prelude::*;
pub struct CastingPlugin;
impl Plugin for CastingPlugin {
fn build(&self, app: &mut App) {
//todo!()
}
}

9
src/collision/mod.rs Normal file
View file

@ -0,0 +1,9 @@
use bevy::prelude::*;
pub struct CollisionPlugin;
impl Plugin for CollisionPlugin {
fn build(&self, app: &mut App) {
//todo!()
}
}

9
src/enemy/mod.rs Normal file
View file

@ -0,0 +1,9 @@
use bevy::prelude::*;
pub struct EnemyPlugin;
impl Plugin for EnemyPlugin {
fn build(&self, app: &mut App) {
//todo!()
}
}

9
src/health/mod.rs Normal file
View file

@ -0,0 +1,9 @@
use bevy::prelude::*;
pub struct HealthPlugin;
impl Plugin for HealthPlugin {
fn build(&self, app: &mut App) {
//todo!()
}
}

View file

@ -1,5 +1,25 @@
use bevy::prelude::*;
use collision::CollisionPlugin;
use casting::CastingPlugin;
use health::HealthPlugin;
use enemy::EnemyPlugin;
use player::PlayerPlugin;
mod collision;
mod casting;
mod health;
mod enemy;
mod player;
fn main() {
App::new().run();
App::new()
.add_plugins(DefaultPlugins)
.add_plugins((
CollisionPlugin,
CastingPlugin,
HealthPlugin,
EnemyPlugin,
PlayerPlugin))
.run();
}

9
src/player/mod.rs Normal file
View file

@ -0,0 +1,9 @@
use bevy::prelude::*;
pub struct PlayerPlugin;
impl Plugin for PlayerPlugin {
fn build(&self, app: &mut App) {
//todo!()
}
}