Creates assets in world from JSON

This commit is contained in:
2018-12-04 01:36:00 +01:00
parent 5a19f801b3
commit 6bb6d88371
15 changed files with 234 additions and 91 deletions

View File

@ -51,16 +51,15 @@ public class Exchange implements Configurable{
//private final HashMap<String, AssetPair> asset_pairs;
private final HashMap<AssetPair,TradingEnv> asset_pairs;
private final HashMap<AssetPair,TradingEnv> asset_pairs = new HashMap<>();
Exchange(World world, String symbol) {
asset_pairs = new HashMap<>();
this.world = world;
this.symbol=symbol;
}
private void reset() {
asset_pairs.clear();
Exchange(World world, JSONObject cfg){
}
public String getName() {