It may be that we can just use the existing Asset::new constructor for creating new assets, in which case we can just add a method to AssetPool for adding new assets.
The bigger problem is that the data structures in AssetPool were written assuming that all the assets were defined ahead of time in assets.csv, so it won't be just a case of appending an Asset to a Vec.
(I don't have time to finish this issue description now, but prod me if you need more info!)
It may be that we can just use the existing
Asset::newconstructor for creating new assets, in which case we can just add a method toAssetPoolfor adding new assets.The bigger problem is that the data structures in
AssetPoolwere written assuming that all the assets were defined ahead of time inassets.csv, so it won't be just a case of appending anAssetto aVec.(I don't have time to finish this issue description now, but prod me if you need more info!)