Esempio n. 1
0
        public IList <IComposite> GetItems(string path)
        {
            IComposite inventory = this;

            var names = path.Split('/');

            foreach (var name in names)
            {
                inventory = inventory.GetItem(name);

                if (inventory == null)
                {
                    return(new List <IComposite>());
                }
            }

            return(inventory.GetItems());
        }