4 using System.Collections.Generic;
6 using SiliconStudio.Core.Serialization.Assets;
8 namespace SiliconStudio.Core.Storage
15 public Dictionary<string, ObjectId> values =
new Dictionary<string, ObjectId>();
36 foreach (var item
in assets)
38 values[item.Key] = item.Value;
51 foreach (var item
in assets)
53 values.Remove(item.Key);
62 return values.TryGetValue(url, out objectId);
70 return values.Where(predicate).ToArray();
78 return values.ContainsKey(url);
95 if (WriteableAssetIndexMap != null)
96 WriteableAssetIndexMap[url] = value;
106 return values.ToArray();
IEnumerable< KeyValuePair< string, ObjectId > > GetMergedIdMap()
void Merge(IAssetIndexMap assetIndexMap)
Merges the values from the given asset index map.
bool Contains(string url)
Asset Index Map implementation which regroups all the asset index maps of every loaded file backend a...
void Unmerge(IEnumerable< KeyValuePair< string, ObjectId >> assets)
Unmerges the values from the given assets.
IEnumerable< KeyValuePair< string, ObjectId > > GetMergedIdMap()
void Merge(IEnumerable< KeyValuePair< string, ObjectId >> assets)
Merges the values from the given assets.
bool TryGetValue(string url, out ObjectId objectId)
IEnumerable< KeyValuePair< string, ObjectId > > SearchValues(Func< KeyValuePair< string, ObjectId >, bool > predicate)
A hash to uniquely identify data.