Exemplo n.º 1
0
        private void GetAssets(InventoryItemBase it, string assetServer)
        {
            Dictionary <UUID, AssetType> ids = new Dictionary <UUID, AssetType> ();

            OpenSim.Region.Framework.Scenes.UuidGatherer uuidg = new OpenSim.Region.Framework.Scenes.UuidGatherer(m_registry.RequestModuleInterface <IAssetService> ());
            uuidg.GatherAssetUuids(it.AssetID, (AssetType)it.AssetType, ids, m_registry);
            //if (ids.ContainsKey (it.AssetID))
            //    ids.Remove (it.AssetID);
            foreach (UUID uuid in ids.Keys)
            {
                FetchAsset(assetServer, uuid);
            }
        }
 private void GetAssets(InventoryItemBase it, string assetServer)
 {
     Dictionary<UUID, AssetType> ids = new Dictionary<UUID, AssetType> ();
     OpenSim.Region.Framework.Scenes.UuidGatherer uuidg = new OpenSim.Region.Framework.Scenes.UuidGatherer (m_registry.RequestModuleInterface<IAssetService> ());
     uuidg.GatherAssetUuids (it.AssetID, (AssetType)it.AssetType, ids, m_registry);
     //if (ids.ContainsKey (it.AssetID))
     //    ids.Remove (it.AssetID);
     foreach (UUID uuid in ids.Keys)
         FetchAsset (assetServer, uuid);
 }