Zone generator requirement
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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){
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user