Class AssetReferenceSite¶
Namespace: Apogee.Content.Assets
Assembly: Apogee.Content.dll
One place in a document that names an asset: an attribute whose text is an
public sealed record AssetReferenceSite : IEquatable<AssetReferenceSite>
Inheritance¶
Implements¶
IEquatable<AssetReferenceSite>
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
AssetReferenceSite(string, int, string, string, AssetRef)¶
One place in a document that names an asset: an attribute whose text is an
public AssetReferenceSite(string Document, int Line, string Element, string Attribute, AssetRef Value)
Parameters¶
Document string
The document, as the virtual path it was found at (res://scenes/start.ascene, mod://core/scenes/a.ascene).
Line int
The line of the element (of the text, for a script).
Element string
The element's name; empty for a script.
Attribute string
The attribute's name; empty for a script, where the mention is text and not an attribute.
Value AssetRef
What the attribute says, read as a reference. For a script the text that was found: a path, or a uid://.
Properties¶
Attribute¶
The attribute's name; empty for a script, where the mention is text and not an attribute.
public string Attribute { get; init; }
Property Value¶
Document¶
The document, as the virtual path it was found at (res://scenes/start.ascene, mod://core/scenes/a.ascene).
public string Document { get; init; }
Property Value¶
Element¶
The element's name; empty for a script.
public string Element { get; init; }
Property Value¶
Line¶
The line of the element (of the text, for a script).
public int Line { get; init; }
Property Value¶
Value¶
What the attribute says, read as a reference. For a script the text that was found: a path, or a uid://.
public AssetRef Value { get; init; }