diff --git a/rc_core/src/persist/maps.rs b/rc_core/src/persist/maps.rs index 3b08de4..952f403 100644 --- a/rc_core/src/persist/maps.rs +++ b/rc_core/src/persist/maps.rs @@ -49,6 +49,15 @@ pub struct CaptureBase { pub percent_per_second: f32, } +impl CaptureBase { + const fn offset(mut self, x: f32, y: f32, z: f32) -> Self { + self.x += x; + self.y += y; + self.z += z; + self + } +} + const DEFAULT_PERCENT_PER_SECOND: f32 = 2.5; const DEFAULT_BASE_RADIUS: f32 = 20.0; @@ -695,7 +704,7 @@ pub(super) fn default_map() -> std::collections::HashMap std::collections::HashMap std::collections::HashMap