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¶
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¶
Defined¶
The file that defines it now.
public DefSource Defined { get; }
Property Value¶
Id¶
public string Id { get; }
Property Value¶
Node¶
The definition's XML with its patches merged in.
public XmlNode Node { get; }
Property Value¶
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¶
Type¶
The element's name: Crate in <Crate id="wooden"/>.
public string Type { get; }
Property Value¶
Value¶
Decoded against the schemas (
public DefValue Value { get; }