refactor: reorganize ecs components

This commit is contained in:
2025-08-15 09:17:43 -05:00
parent 70fb2b9503
commit 242da2e263
12 changed files with 291 additions and 294 deletions

View File

@@ -1,12 +1,12 @@
//! Map construction and building functionality.
use crate::constants::{MapTile, BOARD_CELL_SIZE, CELL_SIZE, RAW_BOARD};
use crate::ecs::NodeId;
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::texture::sprite::{Sprite, SpriteAtlas};
use crate::texture::sprite::SpriteAtlas;
use bevy_ecs::resource::Resource;
use glam::{IVec2, Vec2};
use sdl2::render::{Canvas, RenderTarget};