Added room and grid creation
This commit is contained in:
parent
5a4451d6a7
commit
f3e6afc179
3 changed files with 123 additions and 3 deletions
|
@ -13,6 +13,10 @@ impl Default for Grid {
|
|||
}
|
||||
|
||||
impl Grid {
|
||||
pub fn new(nodes: Vec<Vec2>, connections: Vec<(usize, usize)>) -> Self {
|
||||
Grid { nodes, connections }
|
||||
}
|
||||
|
||||
fn load() -> Self {
|
||||
let mut grid = Self {
|
||||
nodes: vec![
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue