Skip to content

Class Def

Namespace: Apogee.Content.Xml
Assembly: Apogee.Content.dll

One definition: an element with an id, as it is after every file that touched it, and what it decodes to.

public sealed class Def

Inheritance

object ← Def

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Declared

True when a schema described the type.

public bool Declared { get; }

Property Value

bool

Defined

The file that defines it now.

public DefSource Defined { get; }

Property Value

DefSource

Id

public string Id { get; }

Property Value

string

Node

The definition's XML with its patches merged in.

public XmlNode Node { get; }

Property Value

XmlNode

Sources

The files that made the definition, in the order they were loaded: the one that defined it, then its patches. A mod patching a definition can find the files beside the original from here.

public List<DefSource> Sources { get; }

Property Value

List<DefSource>

Type

The element's name: Crate in <Crate id="wooden"/>.

public string Type { get; }

Property Value

string

Value

Decoded against the schemas (), or generically when there is no schema for the type.

public DefValue Value { get; }

Property Value

DefValue