feat: entity type for proper edge permission calculations

This commit is contained in:
2025-08-15 10:06:09 -05:00
parent b9bae99a4c
commit 730daed20a
4 changed files with 37 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ use crate::error::{GameError, GameResult, TextureError};
use crate::events::GameEvent;
use crate::map::builder::Map;
use crate::systems::components::{
DeltaTime, DirectionalAnimated, GlobalState, PlayerBundle, PlayerControlled, Position, Renderable, Velocity,
DeltaTime, DirectionalAnimated, EntityType, GlobalState, PlayerBundle, PlayerControlled, Position, Renderable, Velocity,
};
use crate::systems::control::player_system;
use crate::systems::movement::movement_system;
@@ -143,6 +143,7 @@ impl Game {
textures,
stopped_textures,
},
entity_type: EntityType::Player,
};
world.insert_non_send_resource(atlas);