Example #1
0
 /// <summary>
 /// Process inventory backup
 /// </summary>
 /// <param name="datastore"></param>
 public void ProcessInventoryBackup(IRegionDataStore datastore)
 {
     if (HasInventoryChanged)
     {
         HasInventoryChanged = false;
         List <TaskInventoryItem> items = GetInventoryItems();
         datastore.StorePrimInventory(m_part.UUID, items);
     }
 }
Example #2
0
        /// <summary>
        /// Process inventory backup
        /// </summary>
        /// <param name="datastore"></param>
        public void ProcessInventoryBackup(IRegionDataStore datastore)
        {
            if (HasInventoryChanged)
            {
                lock (Items)
                {
                    datastore.StorePrimInventory(m_part.UUID, Items.Values);
                }

                HasInventoryChanged = false;
            }
        }
        /// <summary>
        /// Process inventory backup
        /// </summary>
        /// <param name="datastore"></param>
        public void ProcessInventoryBackup(IRegionDataStore datastore)
        {
            if (HasInventoryChanged)
            {
                lock (Items)
                {
                    datastore.StorePrimInventory(m_part.UUID, Items.Values);
                }

                HasInventoryChanged = false;
            }
        }