Support for schematic random rotation

This commit is contained in:
Anuken
2020-06-05 13:23:24 -04:00
parent d9e05907af
commit cf02a75846
11 changed files with 180 additions and 48 deletions

View File

@@ -1,10 +1,11 @@
package mindustry.game;
import arc.files.*;
import arc.struct.*;
import arc.struct.IntIntMap.*;
import arc.files.*;
import arc.util.ArcAnnotate.*;
import mindustry.*;
import mindustry.content.*;
import mindustry.mod.Mods.*;
import mindustry.type.*;
import mindustry.world.*;
@@ -125,5 +126,23 @@ public class Schematic implements Publishable, Comparable<Schematic>{
this.config = config;
this.rotation = rotation;
}
//pooling only
public Stile(){
block = Blocks.air;
}
public Stile set(Stile other){
block = other.block;
x = other.x;
y = other.y;
config = other.config;
rotation = other.rotation;
return this;
}
public Stile copy(){
return new Stile(block, x, y, config, rotation);
}
}
}