Ejemplo n.º 1
0
        //---------------------------------------------------------------------------------------------

        public UOItemTypeCollection FindItems(Graphic graphic, UOColor color)
        {
            UOItemTypeCollection items = new UOItemTypeCollection();

            foreach (UOItemType item in this)
            {
                if (item.Graphic == graphic && item.Color == color)
                {
                    items.Add(item);
                }
            }

            return(items);
        }
Ejemplo n.º 2
0
        //---------------------------------------------------------------------------------------------

        public UOItemTypeCollection FindItems(Graphic graphic, params string[] args)
        {
            UOItemTypeCollection items = new UOItemTypeCollection();

            foreach (UOItemType item in this)
            {
                if (item.Graphic == graphic && (args.Length == 0 || item.MatchSearchParams(args)))
                {
                    items.Add(item);
                }
            }

            return(items);
        }