Menu to copy/load objectives from clipboard

This commit is contained in:
Anuken
2024-10-01 15:05:05 -04:00
parent 7b0d0ba10f
commit 13c0e95e6b
2 changed files with 55 additions and 11 deletions

View File

@@ -106,6 +106,13 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
JsonIO.classTag(name, type);
}
public MapObjectives(Seq<MapObjective> all){
this.all.addAll(all);
}
public MapObjectives(){
}
/** Adds all given objectives to the executor as root objectives. */
public void add(MapObjective... objectives){
for(var objective : objectives) flatten(objective);