/// <summary>
        /// Transfers a single item from another collection to this collection.
        /// Item will be removed from source collection and placed in this collection.
        /// UID will be retained.
        /// </summary>
        /// <param name="item">Item to transfer.</param>
        /// <param name="source">Source collection to transfer from.</param>
        public void Transfer(DaggerfallUnityItem item, EntityItems source)
        {
            if (item == null || source == null)
            {
                return;
            }

            source.RemoveItem(item);
            AddItem(item);
        }
        /// <summary>
        /// Replaces all items in this collection with clones of items from source collection.
        /// Items in this collection will be destroyed. Source items will not be changed.
        /// New UIDs will be allocated to cloned items.
        /// </summary>
        /// <param name="source">Source collection to copy from.</param>
        public void ReplaceAll(EntityItems source)
        {
            if (source == null)
            {
                return;
            }

            Clear();
            CopyAll(source);
        }
        /// <summary>
        /// Clones all items from source collection into this collection.
        /// Source items will not be changed.
        /// New UIDs will be allocated to cloned items.
        /// </summary>
        /// <param name="source">Source collection to copy from.</param>
        public void CopyAll(EntityItems source)
        {
            if (source == null)
            {
                return;
            }

            foreach (DaggerfallUnityItem item in source.items.Values)
            {
                AddItem(item.Clone());
            }
        }
        /// <summary>
        /// Transfers all items from another collection.
        /// Items will be removed from source collection and placed in this collection.
        /// UIDs will be retained.
        /// </summary>
        /// <param name="source">Source collection to transfer from.</param>
        public void TransferAll(EntityItems source)
        {
            if (source == null)
            {
                return;
            }

            foreach (DaggerfallUnityItem item in source.items.Values)
            {
                AddItem(item);
            }

            source.Clear();
        }
 /// <summary>
 /// Transfers items from another collection.
 /// Items will be removed from other collection and placed in this one.
 /// </summary>
 /// <param name="other">Source of items to transfer from.</param>
 public void Transfer(EntityItems other)
 {
 }
 /// <summary>
 /// Copies items from another collection.
 /// </summary>
 /// <param name="other">Source of items to copy from.</param>
 public void Copy(EntityItems other)
 {
 }
Example #7
0
 /// <summary>
 /// Transfers items from another collection.
 /// Items will be removed from other collection and placed in this one.
 /// </summary>
 /// <param name="other">Source of items to transfer from.</param>
 public void Transfer(EntityItems other)
 {
 }
Example #8
0
 /// <summary>
 /// Copies items from another collection.
 /// </summary>
 /// <param name="other">Source of items to copy from.</param>
 public void Copy(EntityItems other)
 {
 }