Пример #1
0
 /// <summary>
 /// Iterate through each object of the item-type between the start and end Index.
 /// Example:
 /// foreach(Item item in world.ItemIterator(0, 10)){}
 /// </summary>
 /// <param name="start">The start index for iteration</param>
 /// <param name="end">The end index for iteration.</param>
 /// <returns></returns>
 public System.Collections.IEnumerable ItemIterator(int start, int end)
 {
     for (int i = start; i < end; i++)
     {
         WorldObjects.Item vob = world.ItemList[i];
         yield return(vob.ScriptingProto);
     }
 }
Пример #2
0
 internal Item(WorldObjects.Item item)
     : base(item)
 {
 }