Creates assets in world from JSON
This commit is contained in:
@ -445,13 +445,7 @@ public class Globals {
|
||||
|
||||
}
|
||||
|
||||
public static JSONObject getWorld(){
|
||||
JSONObject world = new JSONObject();
|
||||
world.put(PrefKeys.ASSETS, getAssets());
|
||||
world.put(PrefKeys.EXCHANGES, getExchanges());
|
||||
return world;
|
||||
}
|
||||
|
||||
|
||||
public static void clearAll() {
|
||||
putStrategies(new JSONObject());
|
||||
putTraders(new JSONArray());
|
||||
@ -466,5 +460,13 @@ public class Globals {
|
||||
loadString(s);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static JSONObject getWorld(){
|
||||
JSONObject cfg = new JSONObject();
|
||||
cfg.put(World.JKEYS.ASSETS, getAssets());
|
||||
cfg.put(World.JKEYS.EXCHANGES, getExchanges());
|
||||
return cfg;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user