Exemplo n.º 1
0
 /// <summary>
 /// Resets entity to initial state.
 /// </summary>
 public void Reset()
 {
     equipTable.Clear();
     items.Clear();
     wagonItems.Clear();
     otherItems.Clear();
     SetEntityDefaults();
 }
Exemplo n.º 2
0
        /// <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();
        }