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

GetWearableAssetUuids() protected method

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
return void
        protected void GetWearableAssetUuids (UUID wearableAssetUuid, IDictionary<UUID, AssetType> assetUuids)
        {
            AssetBase assetBase = GetAsset (wearableAssetUuid);

            if (null != assetBase)
            {
                //MainConsole.Instance.Debug(new System.Text.ASCIIEncoding().GetString(bodypartAsset.Data));
                AssetWearable wearableAsset = new AssetBodypart (wearableAssetUuid, assetBase.Data);
                wearableAsset.Decode ();

                //MainConsole.Instance.DebugFormat("[Archiver]: Wearable asset {0} references {1} assets", wearableAssetUuid, wearableAsset.Textures.Count);

                foreach (UUID uuid in wearableAsset.Textures.Values)
                {
                    assetUuids [uuid] = AssetType.Texture;
                }
            }
        }