Objective flag system

This commit is contained in:
Anuken
2022-04-14 16:23:39 -04:00
parent efd30809e8
commit 0f3fc92746
5 changed files with 67 additions and 0 deletions

View File

@@ -172,9 +172,21 @@ public class MapObjectives{
/** Base abstract class for any in-map objective. */
public static abstract class MapObjective{
public String[] flagsAdded = {};
public String[] flagsRemoved = {};
public ObjectiveMarker[] markers = {};
public @Nullable String details;
public MapObjective withFlags(String... flags){
this.flagsAdded = flags;
return this;
}
public MapObjective withFlagsRemoved(String... flags){
this.flagsRemoved = flags;
return this;
}
public MapObjective withMarkers(ObjectiveMarker... markers){
this.markers = markers;
return this;