Universe.Framework.SceneInfo.UuidGatherer.GetSceneObjectAssetUuids C# (CSharp) Method

GetSceneObjectAssetUuids() protected method

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

            if (null != objectAsset)
            {
                string xml = Utils.BytesToString (objectAsset.Data);
                ISceneEntity group = SceneEntitySerializer.SceneObjectSerializer.FromOriginalXmlFormat (xml, null);
                if (group == null)
                    return;
                GatherAssetUuids (group, assetUuids);
            }
        }