Tutorial removed / Logic block group
This commit is contained in:
@@ -36,6 +36,7 @@ public class LogicBlock extends Block{
|
||||
update = true;
|
||||
solid = true;
|
||||
configurable = true;
|
||||
group = BlockGroup.logic;
|
||||
|
||||
config(byte[].class, (LogicBuild build, byte[] data) -> build.readCompressed(data, true));
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ public class LogicDisplay extends Block{
|
||||
super(name);
|
||||
update = true;
|
||||
solid = true;
|
||||
group = BlockGroup.logic;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -12,6 +12,7 @@ public class MemoryBlock extends Block{
|
||||
super(name);
|
||||
destructible = true;
|
||||
solid = true;
|
||||
group = BlockGroup.logic;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -14,6 +14,7 @@ import mindustry.gen.*;
|
||||
import mindustry.ui.*;
|
||||
import mindustry.ui.dialogs.*;
|
||||
import mindustry.world.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
@@ -27,6 +28,7 @@ public class MessageBlock extends Block{
|
||||
configurable = true;
|
||||
solid = true;
|
||||
destructible = true;
|
||||
group = BlockGroup.logic;
|
||||
|
||||
config(String.class, (MessageBuild tile, String text) -> {
|
||||
if(text.length() > maxTextLength){
|
||||
|
||||
@@ -5,6 +5,7 @@ import arc.util.io.*;
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.world.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
||||
public class SwitchBlock extends Block{
|
||||
public @Load("@-on") TextureRegion onRegion;
|
||||
@@ -15,6 +16,7 @@ public class SwitchBlock extends Block{
|
||||
update = true;
|
||||
drawDisabled = false;
|
||||
autoResetEnabled = false;
|
||||
group = BlockGroup.logic;
|
||||
|
||||
config(Boolean.class, (SwitchBuild entity, Boolean b) -> entity.enabled = b);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package mindustry.world.meta;
|
||||
|
||||
public enum BlockGroup{
|
||||
none, walls, turrets, transportation, power, liquids, drills, storage, units
|
||||
none, walls, turrets, transportation, power, liquids, drills, storage, units, logic
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user