Exemplo n.º 1
0
        public List <Entity> LoadInventory(int inventoryID)
        {
            List <int>    items  = ItemDB.GetInventoryItems(inventoryID);
            List <Entity> loaded = new List <Entity>();

            if (items == null)
            {
                return(null);
            }

            foreach (int itemID in items)
            {
                if (LoadItem(itemID) == true)
                {
                    try
                    {
                        loaded.Add(itemList[(ulong)itemID]);
                    }
                    catch (Exception)
                    {
                    }
                }
            }

            return(loaded);
        }