private void DownloadItemCatalogAndPlayerInventory() { mBackend.GetItemCatalog((catalogResult) => { mCatalog = catalogResult; mBackend.GetInventory((inventoryResult) => { Inventory = new Dictionary <string, IMyItemInstance>(); foreach (IMyItemInstance item in inventoryResult) { item.SetCatalogItem(mCatalog.GetItem(item.GetId())); Inventory.Add(item.GetId(), item); } }); }); }