Table of Contents

Class ObjectDatabaseContentIndexMap

Namespace
Stride.Core.Storage
Assembly
Stride.Core.Serialization.dll

Content Index Map implementation which regroups all the asset index maps of every loaded file backend and asset bundle backends.

public class ObjectDatabaseContentIndexMap : IContentIndexMap, IDisposable
Inheritance
ObjectDatabaseContentIndexMap
Implements
Extension Methods

Properties

this[string]

public ObjectId this[string url] { get; set; }

Parameters

url string

Property Value

ObjectId

WriteableContentIndexMap

public IContentIndexMap WriteableContentIndexMap { get; set; }

Property Value

IContentIndexMap

Methods

Contains(string)

public bool Contains(string url)

Parameters

url string

Returns

bool

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetMergedIdMap()

public IEnumerable<KeyValuePair<string, ObjectId>> GetMergedIdMap()

Returns

IEnumerable<KeyValuePair<string, ObjectId>>

Merge(IContentIndexMap)

Merges the values from the given asset index map.

public void Merge(IContentIndexMap contentIndexMap)

Parameters

contentIndexMap IContentIndexMap

The asset index map to merge.

Merge(IEnumerable<KeyValuePair<string, ObjectId>>)

Merges the values from the given assets.

public void Merge(IEnumerable<KeyValuePair<string, ObjectId>> assets)

Parameters

assets IEnumerable<KeyValuePair<string, ObjectId>>

The assets to merge.

SearchValues(Func<KeyValuePair<string, ObjectId>, bool>)

public IEnumerable<KeyValuePair<string, ObjectId>> SearchValues(Func<KeyValuePair<string, ObjectId>, bool> predicate)

Parameters

predicate Func<KeyValuePair<string, ObjectId>, bool>

Returns

IEnumerable<KeyValuePair<string, ObjectId>>

TryGetValue(string, out ObjectId)

public bool TryGetValue(string url, out ObjectId objectId)

Parameters

url string
objectId ObjectId

Returns

bool

Unmerge(IEnumerable<KeyValuePair<string, ObjectId>>)

Unmerges the values from the given assets.

public void Unmerge(IEnumerable<KeyValuePair<string, ObjectId>> assets)

Parameters

assets IEnumerable<KeyValuePair<string, ObjectId>>

The assets to merge.