LIBOMV-639:
* Renamed TextureCache to AssetCache * Plugged in new cache into AssetManager * Removed OnAssetReceived global event from AssetManger * RequestAsset and RequestInventoryAsset now take a delegate of type AssetReceivedCallback git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3004 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -18,8 +18,6 @@ namespace OpenMetaverse.TestClient
|
||||
Name = "download";
|
||||
Description = "Downloads the specified asset. Usage: download [uuid] [assetType]";
|
||||
Category = CommandCategory.Inventory;
|
||||
|
||||
testClient.Assets.OnAssetReceived += new AssetManager.AssetReceivedCallback(Assets_OnAssetReceived);
|
||||
}
|
||||
|
||||
public override string Execute(string[] args, UUID fromAgentID)
|
||||
@@ -40,7 +38,7 @@ namespace OpenMetaverse.TestClient
|
||||
assetType = (AssetType)typeInt;
|
||||
|
||||
// Start the asset download
|
||||
Client.Assets.RequestAsset(AssetID, assetType, true);
|
||||
Client.Assets.RequestAsset(AssetID, assetType, true, Assets_OnAssetReceived);
|
||||
|
||||
if (DownloadHandle.WaitOne(120 * 1000, false))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user