Class LayerMetadata
- Namespace
- Lime
- Assembly
- Lime.dll
LayerMetadata stores all layer-version pairs of a document. For example when scene is serialized it may contain Lime.Node derived types from Lime.* as well as application's types derived from Lime.Node. Thus such document's metadata should contain layer metadata for Citrus e.g. (layer: "citrus", version: 29) as well as layer metadata for an application (e.g. layer: "game", version: 17).
public sealed class LayerMetadata : Metadata
- Inheritance
-
LayerMetadata
- Inherited Members
Constructors
LayerMetadata()
Initializes a new instance of the LayerMetadata class.
public LayerMetadata()
LayerMetadata(IEnumerable<(string Layer, int Version)>)
Initializes a new instance of the LayerMetadata class. Creates layer metadata from provided enumeration of layer-version tuples.
public LayerMetadata(IEnumerable<(string Layer, int Version)> layers)
Parameters
layers
IEnumerable<(string Layer, int Version)>Enumerable of (layer, version) tuples.
Properties
this[string]
public int this[string layer] { get; set; }
Parameters
layer
string
Property Value
Layers
[YuzuMember]
public List<LayerMetadata.LayerVersion> Layers { get; }
Property Value
Methods
GetEnumerator()
public List<LayerMetadata.LayerVersion>.Enumerator GetEnumerator()
Returns
TryGetLayerVersion(string, out int)
public bool TryGetLayerVersion(string layer, out int version)