* refactor: remove AssetCache field hanging off Scene

* This is always available at Scene.CommsManager.AssetCache
This commit is contained in:
Justin Clarke Casey
2009-02-16 19:15:16 +00:00
parent ec07e1aad6
commit 93837807ff
23 changed files with 44 additions and 50 deletions

View File

@@ -3549,7 +3549,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
World.RegionInfo.RegionLocY * Constants.RegionSize,
0);
World.AssetCache.GetAsset(item.AssetID,
World.CommsManager.AssetCache.GetAsset(item.AssetID,
delegate(UUID i, AssetBase a)
{
AssetLandmark lm = new AssetLandmark(a);
@@ -8851,7 +8851,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public delegate void AssetRequestCallback(UUID assetID, AssetBase asset);
private void WithNotecard(UUID assetID, AssetRequestCallback cb)
{
World.AssetCache.GetAsset(assetID, delegate(UUID i, AssetBase a) { cb(i, a); }, false);
World.CommsManager.AssetCache.GetAsset(assetID, delegate(UUID i, AssetBase a) { cb(i, a); }, false);
}
public LSL_String llGetNumberOfNotecardLines(string name)

View File

@@ -1040,7 +1040,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
+ textLength.ToString() + "\n" + notecardData + "}\n";
asset.Data = Encoding.ASCII.GetBytes(notecardData);
World.AssetCache.AddAsset(asset);
World.CommsManager.AssetCache.AddAsset(asset);
// Create Task Entry
TaskInventoryItem taskItem=new TaskInventoryItem();