diff options
Diffstat (limited to 'src/structure.rs')
-rw-r--r-- | src/structure.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/structure.rs b/src/structure.rs index 2137766..f8575b1 100644 --- a/src/structure.rs +++ b/src/structure.rs @@ -2,7 +2,10 @@ use std::collections::HashMap; pub use building::Building; -use crate::{physics::Point, Collision, Render}; +use crate::{ + physics::{Collider, Point}, + Render, +}; mod building; @@ -17,7 +20,7 @@ impl Render for Structure { } } -impl Collision for Structure { +impl Collider for Structure { fn collision_map(&self) -> &Vec<crate::physics::Point> { &self.collision_map } |