constructor to initialize only with asset
This commit is contained in:
parent
361a4788a0
commit
20ed896486
@ -38,6 +38,10 @@ public class AssetPack {
|
|||||||
this.volume=volume;
|
this.volume=volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AssetPack(AbstractAsset asset){
|
||||||
|
this.asset=asset;
|
||||||
|
}
|
||||||
|
|
||||||
public AssetPack(World world, String symbol,double volume){
|
public AssetPack(World world, String symbol,double volume){
|
||||||
this(world.getAssetBySymbol(symbol),volume);
|
this(world.getAssetBySymbol(symbol),volume);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user