From a1826763f5f123eb863fbd4820bcf363a569bf5f Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 15 Oct 2019 08:56:42 -0400 Subject: [PATCH] Autotiling begins --- core/src/io/anuke/mindustry/game/Schematics.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/io/anuke/mindustry/game/Schematics.java b/core/src/io/anuke/mindustry/game/Schematics.java index ca86000ba1..e0adde6ca7 100644 --- a/core/src/io/anuke/mindustry/game/Schematics.java +++ b/core/src/io/anuke/mindustry/game/Schematics.java @@ -104,6 +104,8 @@ public class Schematics{ Draw.rect(Tmp.tr1, buffer.getWidth()/2f, buffer.getHeight()/2f, buffer.getWidth(), buffer.getHeight()); Draw.color(); + Array requests = schematic.tiles.map(t -> new BuildRequest(t.x, t.y, t.rotation, t.block).configure(t.config)); + schematic.tiles.each(t -> { float offset = (t.block.size + 1) % 2 / 2f; Draw.rect(t.block.icon(Cicon.full),