diff options
Diffstat (limited to 'crates/fparkan-runtime/src/unit_patrol.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/unit_patrol.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/crates/fparkan-runtime/src/unit_patrol.rs b/crates/fparkan-runtime/src/unit_patrol.rs index cfe49901..b4b81c7f 100644 --- a/crates/fparkan-runtime/src/unit_patrol.rs +++ b/crates/fparkan-runtime/src/unit_patrol.rs @@ -310,17 +310,6 @@ impl UnitPatrol { self.units.iter().any(|unit| unit.handle == handle) } - pub(super) fn has_object_order(&self, handle: ObjectHandle, target: ObjectHandle) -> bool { - self.units - .iter() - .any(|unit| unit.handle == handle && unit.has_object_order(target)) - } - - pub(super) fn clear_object_order(&mut self, handle: ObjectHandle, target: ObjectHandle) { - self.units - .retain(|unit| unit.handle != handle || !unit.has_object_order(target)); - } - pub(super) fn has_point_order(&self, handle: ObjectHandle, point: [f32; 2]) -> bool { self.units .iter() |
