constructor to initialize only with asset

This commit is contained in:
7u83 2018-12-29 01:36:02 +01:00
parent 361a4788a0
commit 20ed896486
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ public class AssetPack {
this.volume=volume;
}
public AssetPack(AbstractAsset asset){
this.asset=asset;
}
public AssetPack(World world, String symbol,double volume){
this(world.getAssetBySymbol(symbol),volume);
}