Zone generator requirement

This commit is contained in:
Anuken 2019-01-11 09:46:49 -05:00
parent ae3aa20508
commit 7889db43a8
4 changed files with 17 additions and 5 deletions

View file

@ -99,7 +99,6 @@ public class MapRenderer implements Disposable{
private void render(int wx, int wy){
int x = wx / chunksize, y = wy / chunksize;
IndexedRenderer mesh = chunks[x][y];
//TileDataMarker data = editor.getMap().readAt(wx, wy);
byte bf = editor.getMap().read(wx, wy, DataPosition.floor);
byte bw = editor.getMap().read(wx, wy, DataPosition.wall);
byte btr = editor.getMap().read(wx, wy, DataPosition.rotationTeam);

View file

@ -0,0 +1,13 @@
package io.anuke.mindustry.maps.generators;
public class BasicGenerator extends RandomGenerator{
public BasicGenerator(int width, int height){
super(width, height);
}
@Override
public void generate(int x, int y){
}
}

View file

@ -9,9 +9,8 @@ public abstract class RandomGenerator extends Generator{
protected Block floor;
protected Block block;
public RandomGenerator(int width, int height, Block floor){
public RandomGenerator(int width, int height){
super(width, height);
this.floor = floor;
}
@Override

View file

@ -8,11 +8,12 @@ import io.anuke.mindustry.maps.generators.Generator;
public class Zone extends UnlockableContent{
public final String name;
public final Generator generator;
public ItemStack[] deployCost = {};
public Generator generator;
public Zone(String name){
public Zone(String name, Generator generator){
this.name = name;
this.generator = generator;
}
@Override