Added map region class
This commit is contained in:
@@ -3,6 +3,7 @@ package mindustry.game;
|
||||
import arc.*;
|
||||
import arc.struct.*;
|
||||
import arc.files.*;
|
||||
import arc.util.ArcAnnotate.*;
|
||||
import arc.util.io.*;
|
||||
import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
@@ -19,6 +20,8 @@ import static mindustry.Vars.*;
|
||||
public class GlobalData{
|
||||
private ObjectMap<ContentType, ObjectSet<String>> unlocked = new ObjectMap<>();
|
||||
private ObjectIntMap<Item> items = new ObjectIntMap<>();
|
||||
private Array<Satellite> satellites = new Array<>();
|
||||
private ObjectMap<String, MapRegion> regions = new ObjectMap<>();
|
||||
private boolean modified;
|
||||
|
||||
public GlobalData(){
|
||||
@@ -35,6 +38,10 @@ public class GlobalData{
|
||||
});
|
||||
}
|
||||
|
||||
public @Nullable MapRegion getRegion(String name){
|
||||
return regions.get(name);
|
||||
}
|
||||
|
||||
public void exportData(Fi file) throws IOException{
|
||||
Array<Fi> files = new Array<>();
|
||||
files.add(Core.settings.getSettingsFile());
|
||||
|
||||
Reference in New Issue
Block a user