This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO: rethink this code too only spawn 1 hallway per room | |
// maybe try this apporach again now that the room ids are | |
pub fn plan_hallways_two( | |
mut cmds: Commands, | |
mut dungeon_root: Query<&mut DungeonSettings, With<DungeonContainerTag>>, | |
room_query: Query<(&GlobalTransform, &mut PlacedRoom), With<DungeonRoomTag>>, | |
mut exit_query: Query<(&GlobalTransform, &mut RoomExit)>, | |
) { | |
let mut settings = dungeon_root.single_mut(); | |
let mut hallways: Vec<PlacedHallWay> = Vec::new(); |