Removed shield breaker block
This commit is contained in:
@@ -19,7 +19,7 @@ public class LCategory implements Comparable<LCategory>{
|
||||
operation = new LCategory("operation", Pal.logicOperations, Icon.settingsSmall),
|
||||
control = new LCategory("control", Pal.logicControl, Icon.rotateSmall),
|
||||
unit = new LCategory("unit", Pal.logicUnits, Icon.unitsSmall),
|
||||
world = new LCategory("world", Pal.logicWorld, Icon.terminalSmall);
|
||||
world = new LCategory("world", Pal.logicWorld, Icon.terrainSmall);
|
||||
|
||||
public final String name;
|
||||
public final int id;
|
||||
|
||||
@@ -1084,7 +1084,6 @@ public class LExecutor{
|
||||
public int value;
|
||||
|
||||
public float curTime;
|
||||
public double wait;
|
||||
public long frameId;
|
||||
|
||||
public WaitI(int value){
|
||||
@@ -1110,6 +1109,15 @@ public class LExecutor{
|
||||
}
|
||||
}
|
||||
|
||||
public static class StopI implements LInstruction{
|
||||
|
||||
@Override
|
||||
public void run(LExecutor exec){
|
||||
//skip back to self.
|
||||
exec.var(varCounter).numval --;
|
||||
}
|
||||
}
|
||||
|
||||
//TODO inverse lookup
|
||||
public static class LookupI implements LInstruction{
|
||||
public int dest;
|
||||
|
||||
@@ -675,7 +675,25 @@ public class LStatements{
|
||||
|
||||
@Override
|
||||
public LCategory category(){
|
||||
return LCategory.operation;
|
||||
return LCategory.control;
|
||||
}
|
||||
}
|
||||
|
||||
@RegisterStatement("stop")
|
||||
public static class StopStatement extends LStatement{
|
||||
|
||||
@Override
|
||||
public void build(Table table){
|
||||
}
|
||||
|
||||
@Override
|
||||
public LInstruction build(LAssembler builder){
|
||||
return new StopI();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LCategory category(){
|
||||
return LCategory.control;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user