Tree-based zone layout

This commit is contained in:
Anuken
2019-01-25 21:48:03 -05:00
parent 89e29bce62
commit ead0547d59
4 changed files with 161 additions and 159 deletions
@@ -2,6 +2,7 @@ package io.anuke.mindustry.game;
import io.anuke.arc.graphics.g2d.TextureRegion;
import io.anuke.arc.scene.ui.layout.Table;
import io.anuke.mindustry.Vars;
/**Base interface for an unlockable content type.*/
public abstract class UnlockableContent extends MappableContent{
@@ -26,4 +27,12 @@ public abstract class UnlockableContent extends MappableContent{
public boolean alwaysUnlocked(){
return false;
}
public final boolean unlocked(){
return Vars.data.isUnlocked(this);
}
public final boolean locked(){
return !unlocked();
}
}