🗺 Locate existing mechpads (#915)

* Stash prototype

* Only target mechpads of the same team

* Switch from chessboard lookup to indexer

* Point using cubes

* Delegate * tilesize
This commit is contained in:
Patrick 'Quezler' Mounier
2019-10-29 05:01:39 +01:00
committed by Anuken
parent 485fc3ea2a
commit f07239d8c2
4 changed files with 24 additions and 3 deletions

View File

@@ -26,10 +26,10 @@ import static io.anuke.mindustry.Vars.*;
public class PlacementFragment extends Fragment{
final int rowWidth = 4;
public Category currentCategory = Category.distribution;
Array<Block> returnArray = new Array<>();
Array<Category> returnCatArray = new Array<>();
boolean[] categoryEmpty = new boolean[Category.all.length];
Category currentCategory = Category.distribution;
ObjectMap<Category,Block> selectedBlocks = new ObjectMap<Category,Block>();
Block hovered, lastDisplay;
Tile lastHover;