World processor markers: remove toggleVisibility, swap makemarker's type and id arguments for instruction consistency

This commit is contained in:
ApsZoldat
2023-11-22 22:33:05 +03:00
parent c434e18f8f
commit aa018b314d
3 changed files with 1 additions and 3 deletions

View File

@@ -629,7 +629,6 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
/** Control marker with world processor code*/
public void control(LMarkerControl type, double p1, double p2, double p3){
switch(type){
case toggleVisibility -> hidden = !hidden;
case visibility -> hidden = ((Math.abs(p1) < 1e-5));
case drawLayer -> drawLayer = (float)p1;
}

View File

@@ -3,7 +3,6 @@ package mindustry.logic;
public enum LMarkerControl{
remove,
visibility("true/false"),
toggleVisibility,
x("x"),
y("y"),
pos("x", "y"),

View File

@@ -2000,7 +2000,7 @@ public class LStatements{
@RegisterStatement("makemarker")
public static class MakeMarkerStatement extends LStatement{
public String id = "0", type = "shape", x = "0", y = "0", replace = "true";
public String type = "shape", id = "0", x = "0", y = "0", replace = "true";
@Override
public void build(Table table){