OpenSim.Region.Framework.Scenes.UuidGatherer.GetSceneObjectAssetUuids C# (CSharp) Méthode

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
        protected void GetSceneObjectAssetUuids(UUID sceneObjectUuid, IDictionary<UUID, AssetType> assetUuids)
        {
            AssetBase objectAsset = GetAsset(sceneObjectUuid);

            if (null != objectAsset)
            {
                string xml = Utils.BytesToString(objectAsset.Data);
                SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml);

                if (null != sog)
                    GatherAssetUuids(sog, assetUuids);
            }
        }