Exemple #1
0
        public Item[] GetEquippedItems()
        {
            List <Item> itemList = new List <Item>(29);

            int[] layerArray = this.GetAllLayers();
            Item  i;

            for (int x = 0; x < layerArray.Length; x++)
            {
                if (layerArray[x] != 0)
                {
                    if (ClientInfoCollection.GetItem(myClient, layerArray[x], out i) && i.Layer != Layer.Invalid)
                    {
                        itemList.Add(i);
                    }
                }
            }
            return(itemList.ToArray());
        }
Exemple #2
0
 public bool GetEquippedItem(Layer layer, out Item item)
 {
     return(ClientInfoCollection.GetItem(myClient, GetLayer((int)layer), out item));
 }