Skip to content

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 (or, for a script, a string that mentions the asset).

public sealed record AssetReferenceSite : IEquatable<AssetReferenceSite>

Inheritance

object ← AssetReferenceSite

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 (or, for a script, a string that mentions the asset).

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

string

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

string

Element

The element's name; empty for a script.

public string Element { get; init; }

Property Value

string

Line

The line of the element (of the text, for a script).

public int Line { get; init; }

Property Value

int

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; }

Property Value

AssetRef