WIP room movement

This commit is contained in:
Glaeder 2024-07-07 00:48:37 +02:00
parent c8e21d544a
commit 0a7e741207
5 changed files with 67 additions and 20 deletions

View file

@ -14,7 +14,10 @@ impl Default for Grid {
impl Grid {
pub fn new(nodes: Vec<Vec2>, connections: Vec<(usize, usize)>) -> Self {
Grid { nodes, connections }
let mut grid = Grid { nodes, connections };
grid.sanitize();
grid
}
fn load() -> Self {