Schematic rotation

This commit is contained in:
Anuken
2019-10-18 11:38:00 -04:00
parent 30bcfb6d5e
commit f7d98591c9
7 changed files with 73 additions and 6 deletions
@@ -1,6 +1,7 @@
package io.anuke.mindustry.game;
import io.anuke.arc.collection.*;
import io.anuke.arc.files.*;
import io.anuke.arc.util.ArcAnnotate.*;
import io.anuke.mindustry.world.*;
@@ -9,6 +10,7 @@ public class Schematic{
public StringMap tags;
public int width, height;
public boolean workshop;
public @Nullable FileHandle file;
public Schematic(Array<Stile> tiles, StringMap tags, int width, int height){
this.tiles = tiles;
@@ -244,6 +244,7 @@ public class Schematics implements Loadable{
if(!s.tags.containsKey("name")){
s.tags.put("name", file.nameWithoutExtension());
}
s.file = file;
return s;
}