Add output signals
This commit is contained in:
parent
ce76626f79
commit
aabd9486e0
3 changed files with 90 additions and 32 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue