mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
From Alan Webb <awebb@linux.vnet.ibm.com>
These changes replace all direct references to the AssetCache with IAssetCache. There is no change to functionality. Everything works as before. This is laying the groundwork for making it possible to register alternative asset caching mechanisms without disrupting other parts of OpenSim or their dependencies upon AssetCache functionality.
This commit is contained in:
@@ -58,7 +58,7 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid
|
||||
|
||||
public HGScene(RegionInfo regInfo, AgentCircuitManager authen,
|
||||
CommunicationsManager commsMan, SceneCommunicationService sceneGridService,
|
||||
AssetCache assetCach, StorageManager storeManager,
|
||||
IAssetCache assetCach, StorageManager storeManager,
|
||||
ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim,
|
||||
bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
|
||||
: base(regInfo, authen, commsMan, sceneGridService, assetCach, storeManager, moduleLoader,
|
||||
|
||||
@@ -272,7 +272,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public Scene(RegionInfo regInfo, AgentCircuitManager authen,
|
||||
CommunicationsManager commsMan, SceneCommunicationService sceneGridService,
|
||||
AssetCache assetCach, StorageManager storeManager,
|
||||
IAssetCache assetCach, StorageManager storeManager,
|
||||
ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim,
|
||||
bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
|
||||
{
|
||||
|
||||
@@ -126,9 +126,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
protected string m_datastore;
|
||||
|
||||
private AssetCache m_assetCache;
|
||||
private IAssetCache m_assetCache;
|
||||
|
||||
public AssetCache AssetCache
|
||||
public IAssetCache AssetCache
|
||||
{
|
||||
get { return m_assetCache; }
|
||||
set { m_assetCache = value; }
|
||||
|
||||
@@ -251,7 +251,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_part.ScheduleFullUpdate();
|
||||
return;
|
||||
}
|
||||
AssetCache cache = m_part.ParentGroup.Scene.AssetCache;
|
||||
IAssetCache cache = m_part.ParentGroup.Scene.AssetCache;
|
||||
|
||||
cache.GetAsset(item.AssetID, delegate(UUID assetID, AssetBase asset)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user