aboutsummaryrefslogtreecommitdiff
path: root/src/map/mappable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mappable.rs')
-rw-r--r--src/map/mappable.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/mappable.rs b/src/map/mappable.rs
index b348c4b..323361a 100644
--- a/src/map/mappable.rs
+++ b/src/map/mappable.rs
@@ -2,8 +2,8 @@
//! dimension on the map and may be scaleable
use crate::math::Rect;
-use crate::scaleable::Scaleable;
use crate::transform::Transform;
+use crate::transformable::NonRigidTransformable;
use raylib::drawing::RaylibDrawHandle;
pub trait Mappable {
@@ -21,7 +21,11 @@ pub trait Mappable {
/// Get the rectangle that contains the mappable object in its entirety without excess.
fn bounding_rect(&self) -> Rect<f64>;
- fn as_scaleable(&self) -> Option<&dyn Scaleable> {
+ fn as_non_rigid(&self) -> Option<&dyn NonRigidTransformable> {
+ None
+ }
+
+ fn as_non_rigid_mut(&mut self) -> Option<&mut dyn NonRigidTransformable> {
None
}
}