Asset System work... Refactoring, documentation, making more sub-class friendly, and oh yeah -- Asset Downloading no longer requires blocking, and timeouts have been added through-out.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@840 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Michael Cortez
2007-01-13 00:23:00 +00:00
parent 8aa2287190
commit 3ebfbf4b79
12 changed files with 468 additions and 325 deletions

View File

@@ -19,7 +19,11 @@ namespace libsecondlife.InventorySystem
{
if ( (AssetID != null) && (AssetID != LLUUID.Zero) )
{
base.iManager.AssetManager.GetInventoryAsset(this);
AssetRequestDownload request = base.iManager.AssetManager.RequestInventoryAsset(this);
if (request.Wait(AssetManager.DefaultTimeout) != AssetRequestDownload.RequestStatus.Success)
{
throw new Exception("Asset (" + AssetID.ToStringHyphenated() + ") unavailable (" + request.StatusMsg + ") for " + this.Name);
}
return ((AssetScript)Asset).Source;
}
}