mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-07 11:15:47 -06:00
refactor: rename 'ecs' submodule to 'systems'
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use glam::Vec2;
|
||||
|
||||
use crate::ecs::components::NodeId;
|
||||
use crate::systems::components::NodeId;
|
||||
|
||||
use super::direction::Direction;
|
||||
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
include!(concat!(env!("OUT_DIR"), "/atlas_data.rs"));
|
||||
|
||||
use crate::constants::CANVAS_SIZE;
|
||||
use crate::ecs::components::{
|
||||
DeltaTime, DirectionalAnimated, GlobalState, PlayerBundle, PlayerControlled, Position, Renderable, Velocity,
|
||||
};
|
||||
use crate::ecs::interact::interact_system;
|
||||
use crate::ecs::movement::movement_system;
|
||||
use crate::ecs::render::{directional_render_system, render_system, BackbufferResource, MapTextureResource};
|
||||
use crate::entity::direction::Direction;
|
||||
use crate::error::{GameError, GameResult, TextureError};
|
||||
use crate::input::commands::GameCommand;
|
||||
use crate::map::builder::Map;
|
||||
use crate::systems::components::{
|
||||
DeltaTime, DirectionalAnimated, GlobalState, PlayerBundle, PlayerControlled, Position, Renderable, Velocity,
|
||||
};
|
||||
use crate::systems::interact::interact_system;
|
||||
use crate::systems::movement::movement_system;
|
||||
use crate::systems::render::{directional_render_system, render_system, BackbufferResource, MapTextureResource};
|
||||
use crate::texture::animated::AnimatedTexture;
|
||||
use bevy_ecs::event::EventRegistry;
|
||||
use bevy_ecs::observer::Trigger;
|
||||
|
||||
@@ -4,7 +4,6 @@ pub mod app;
|
||||
pub mod asset;
|
||||
pub mod audio;
|
||||
pub mod constants;
|
||||
pub mod ecs;
|
||||
pub mod entity;
|
||||
pub mod error;
|
||||
pub mod game;
|
||||
@@ -12,4 +11,5 @@ pub mod helpers;
|
||||
pub mod input;
|
||||
pub mod map;
|
||||
pub mod platform;
|
||||
pub mod systems;
|
||||
pub mod texture;
|
||||
|
||||
@@ -10,7 +10,6 @@ mod asset;
|
||||
mod audio;
|
||||
mod constants;
|
||||
|
||||
mod ecs;
|
||||
mod entity;
|
||||
mod error;
|
||||
mod game;
|
||||
@@ -18,6 +17,7 @@ mod helpers;
|
||||
mod input;
|
||||
mod map;
|
||||
mod platform;
|
||||
mod systems;
|
||||
mod texture;
|
||||
|
||||
/// The main entry point of the application.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
//! Map construction and building functionality.
|
||||
|
||||
use crate::constants::{MapTile, BOARD_CELL_SIZE, CELL_SIZE};
|
||||
use crate::ecs::components::NodeId;
|
||||
use crate::entity::direction::Direction;
|
||||
use crate::entity::graph::{EdgePermissions, Graph, Node};
|
||||
use crate::map::parser::MapTileParser;
|
||||
use crate::map::render::MapRenderer;
|
||||
use crate::systems::components::NodeId;
|
||||
use crate::texture::sprite::SpriteAtlas;
|
||||
use bevy_ecs::resource::Resource;
|
||||
use glam::{IVec2, Vec2};
|
||||
|
||||
@@ -4,10 +4,10 @@ use bevy_ecs::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
ecs::components::{GlobalState, PlayerControlled, Velocity},
|
||||
error::GameError,
|
||||
game::events::GameEvent,
|
||||
input::commands::GameCommand,
|
||||
systems::components::{GlobalState, PlayerControlled, Velocity},
|
||||
};
|
||||
|
||||
// Handles
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::ecs::components::{DeltaTime, PlayerControlled, Position, Velocity};
|
||||
use crate::entity::graph::EdgePermissions;
|
||||
use crate::error::{EntityError, GameError};
|
||||
use crate::map::builder::Map;
|
||||
use crate::systems::components::{DeltaTime, PlayerControlled, Position, Velocity};
|
||||
use bevy_ecs::event::EventWriter;
|
||||
use bevy_ecs::system::{Query, Res};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::ecs::components::{DeltaTime, DirectionalAnimated, Position, Renderable, Velocity};
|
||||
use crate::error::{GameError, TextureError};
|
||||
use crate::map::builder::Map;
|
||||
use crate::systems::components::{DeltaTime, DirectionalAnimated, Position, Renderable, Velocity};
|
||||
use crate::texture::sprite::SpriteAtlas;
|
||||
use bevy_ecs::entity::Entity;
|
||||
use bevy_ecs::event::EventWriter;
|
||||
Reference in New Issue
Block a user