C# Class OpenSim.Region.Framework.Scenes.UuidGatherer

Gather uuids for a given entity.
This does a deep inspection of the entity to retrieve all the assets it uses (whether as textures, as scripts contained in inventory, as scripts contained in objects contained in another object's inventory, etc. Assets are only retrieved when they are necessary to carry out the inspection (i.e. a serialized object needs to be retrieved to work out which assets it references).
Afficher le fichier Open project: N3X15/VoxelSim Class Usage Examples

Protected Properties

Свойство Type Description
m_assetCache IAssetService
m_requestedObjectAsset OpenSim.Framework.AssetBase
m_waitingForObjectAsset bool

Méthodes publiques

Méthode Description
GatherAssetUuids ( SceneObjectGroup sceneObject, AssetType>.IDictionary assetUuids ) : void

Gather all the asset uuids associated with a given object.

GatherAssetUuids ( UUID assetUuid, AssetType assetType, AssetType>.IDictionary assetUuids ) : void

Gather all the asset uuids associated with the asset referenced by a given uuid

UuidGatherer ( IAssetService assetCache ) : System

Méthodes protégées

Méthode Description
AssetReceived ( string id, Object sender, OpenSim.Framework.AssetBase asset ) : void

The callback made when we request the asset for an object from the asset service.

GetAsset ( UUID uuid ) : OpenSim.Framework.AssetBase

Get an asset synchronously, potentially using an asynchronous callback. If the asynchronous callback is used, we will wait for it to complete.

GetGestureAssetUuids ( UUID gestureUuid, AssetType>.IDictionary assetUuids ) : void

Get the asset uuid associated with a gesture

GetSceneObjectAssetUuids ( UUID sceneObjectUuid, AssetType>.IDictionary assetUuids ) : void

Get all the asset uuids associated with a given object. This includes both those directly associated with it (e.g. face textures) and recursively, those of items within it's inventory (e.g. objects contained within this object).

GetScriptAssetUuids ( UUID scriptUuid, AssetType>.IDictionary assetUuids ) : void

Record the asset uuids embedded within the given script.

GetWearableAssetUuids ( UUID wearableAssetUuid, AssetType>.IDictionary assetUuids ) : void

Record the uuids referenced by the given wearable asset

Method Details

AssetReceived() protected méthode

The callback made when we request the asset for an object from the asset service.
protected AssetReceived ( string id, Object sender, OpenSim.Framework.AssetBase asset ) : void
id string
sender Object
asset OpenSim.Framework.AssetBase
Résultat void

GatherAssetUuids() public méthode

Gather all the asset uuids associated with a given object.
public GatherAssetUuids ( SceneObjectGroup sceneObject, AssetType>.IDictionary assetUuids ) : void
sceneObject SceneObjectGroup The scene object for which to gather assets
assetUuids AssetType>.IDictionary The assets gathered
Résultat void

GatherAssetUuids() public méthode

Gather all the asset uuids associated with the asset referenced by a given uuid
public GatherAssetUuids ( UUID assetUuid, AssetType assetType, AssetType>.IDictionary assetUuids ) : void
assetUuid UUID The uuid of the asset for which to gather referenced assets
assetType AssetType The type of the asset for the uuid given
assetUuids AssetType>.IDictionary The assets gathered
Résultat void

GetAsset() protected méthode

Get an asset synchronously, potentially using an asynchronous callback. If the asynchronous callback is used, we will wait for it to complete.
protected GetAsset ( UUID uuid ) : OpenSim.Framework.AssetBase
uuid UUID
Résultat OpenSim.Framework.AssetBase

GetGestureAssetUuids() protected méthode

Get the asset uuid associated with a gesture
protected GetGestureAssetUuids ( UUID gestureUuid, AssetType>.IDictionary assetUuids ) : void
gestureUuid UUID
assetUuids AssetType>.IDictionary
Résultat void

GetSceneObjectAssetUuids() protected méthode

Get all the asset uuids associated with a given object. This includes both those directly associated with it (e.g. face textures) and recursively, those of items within it's inventory (e.g. objects contained within this object).
protected GetSceneObjectAssetUuids ( UUID sceneObjectUuid, AssetType>.IDictionary assetUuids ) : void
sceneObjectUuid UUID
assetUuids AssetType>.IDictionary
Résultat void

GetScriptAssetUuids() protected méthode

Record the asset uuids embedded within the given script.
protected GetScriptAssetUuids ( UUID scriptUuid, AssetType>.IDictionary assetUuids ) : void
scriptUuid UUID
assetUuids AssetType>.IDictionary Dictionary in which to record the references
Résultat void

GetWearableAssetUuids() protected méthode

Record the uuids referenced by the given wearable asset
protected GetWearableAssetUuids ( UUID wearableAssetUuid, AssetType>.IDictionary assetUuids ) : void
wearableAssetUuid UUID
assetUuids AssetType>.IDictionary Dictionary in which to record the references
Résultat void

UuidGatherer() public méthode

public UuidGatherer ( IAssetService assetCache ) : System
assetCache IAssetService
Résultat System

Property Details

m_assetCache protected_oe property

Asset cache used for gathering assets
protected IAssetService m_assetCache
Résultat IAssetService

m_requestedObjectAsset protected_oe property

Used as a temporary store of an asset which represents an object. This can be a null if no appropriate asset was found by the asset service.
protected AssetBase,OpenSim.Framework m_requestedObjectAsset
Résultat OpenSim.Framework.AssetBase

m_waitingForObjectAsset protected_oe property

Signal whether we are currently waiting for the asset service to deliver an asset.
protected bool m_waitingForObjectAsset
Résultat bool