mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-23 04:52:38 -08:00
Zone generator requirement
This commit is contained in:
parent
ae3aa20508
commit
7889db43a8
4 changed files with 17 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue