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