WIP room movement
This commit is contained in:
parent
c8e21d544a
commit
0a7e741207
5 changed files with 67 additions and 20 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue