Exemplo n.º 1
0
        private void deleteDataValue(UUID hostID, UUID scriptID, string key, int privateStorage)
        {
            if (m_storage != null)
            {
                try
                {
                    SceneObjectPart _host = base.World.GetSceneObjectPart(hostID);

                    String storageNameSpace = _host.GroupID.ToString();

                    if (privateStorage == 1)
                    {
                        storageNameSpace = _host.OwnerID.ToString();
                    }

                    m_storage.remove(storageNameSpace, key);
                    DataStorageEvents.onDeleteDataValue(storageNameSpace, key);
                    return;
                }
                catch (Exception _error)
                {
                    base.Logger.Error("[" + Name + "] osDeleteDataValue: " + _error.Message);
                }
            }
            else
            {
                base.Logger.Error("No data Storage aviable.");
            }
        }
Exemplo n.º 2
0
 public void remove()
 {
     m_lastUseTime = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
     m_storage.remove(m_group, m_index);
 }