private AssetInstance NewAssetInstance(string key, AssetType type, IAssetCore newcore) { AssetInstance inst = new AssetInstance { core = newcore }; newcore.AllocationChanged += OnAssetAllocationChanged; _assets[(int)type].Add(key, inst); return(inst); }
private AssetInstance NewAssetInstance(string key, AssetType type, IAssetCore newcore) { AssetInstance inst = new AssetInstance { core = newcore }; newcore.AllocationChanged += OnAssetAllocationChanged; _assets[(int) type].Add(key, inst); return inst; }