Add output signals

This commit is contained in:
hal8174 2025-01-25 19:16:27 +01:00
parent ce76626f79
commit aabd9486e0
3 changed files with 90 additions and 32 deletions

View file

@ -1,4 +1,5 @@
use factorio_core::{
aabb::AABB,
beltoptions::Beltspeed,
direction,
pathfield::PathField,
@ -459,6 +460,14 @@ impl Blueprint {
e.transform(transform);
}
}
pub fn bounding_box(&self) -> AABB {
self.entities
.iter()
.map(|(_, e)| AABB::new(e.position, e.position))
.reduce(|a, b| a.combine(b))
.unwrap()
}
}
impl Default for Blueprint {