Barotrauma Client Doc
|
Public Member Functions | |
ContentXElement (ContentPackage? contentPackage, XElement element) | |
Identifier | NameAsIdentifier () |
ContentXElement? | FirstElement () |
bool | IsOverride () |
bool | ComesAfter (ContentXElement other) |
ContentXElement? | GetChildElement (string name) |
IEnumerable< ContentXElement > | Elements () |
IEnumerable< ContentXElement > | ElementsBeforeSelf () |
IEnumerable< ContentXElement > | Descendants () |
IEnumerable< ContentXElement > | GetChildElements (string name) |
XAttribute? | GetAttribute (string name) |
IEnumerable< XAttribute > | Attributes () |
IEnumerable< XAttribute > | Attributes (string name) |
string | ElementInnerText () |
Identifier | GetAttributeIdentifier (string key, string def) |
Identifier | GetAttributeIdentifier (string key, Identifier def) |
Identifier[] | GetAttributeIdentifierArray (Identifier[] def, params string[] keys) |
Identifier[] | GetAttributeIdentifierArray (string key, Identifier[] def, bool trim=true) |
ImmutableHashSet< Identifier > | GetAttributeIdentifierImmutableHashSet (string key, ImmutableHashSet< Identifier >? def, bool trim=true) |
string? | GetAttributeString (string key, string? def) |
string | GetAttributeStringUnrestricted (string key, string def) |
string?[] | GetAttributeStringArray (string key, string[]? def, bool convertToLowerInvariant=false) |
ContentPath? | GetAttributeContentPath (string key) |
int | GetAttributeInt (string key, int def) |
ushort | GetAttributeUInt16 (string key, ushort def) |
int?[] | GetAttributeIntArray (string key, int[]? def) |
ushort?[] | GetAttributeUshortArray (string key, ushort[]? def) |
float | GetAttributeFloat (string key, float def) |
float?[] | GetAttributeFloatArray (string key, float[]? def) |
float | GetAttributeFloat (float def, params string[] keys) |
bool | GetAttributeBool (string key, bool def) |
Point | GetAttributePoint (string key, in Point def) |
Vector2 | GetAttributeVector2 (string key, in Vector2 def) |
Vector4 | GetAttributeVector4 (string key, in Vector4 def) |
Color | GetAttributeColor (string key, in Color def) |
Color? | GetAttributeColor (string key) |
Color?[] | GetAttributeColorArray (string key, Color[]? def) |
Rectangle | GetAttributeRect (string key, in Rectangle def) |
Version | GetAttributeVersion (string key, Version def) |
T | GetAttributeEnum< T > (string key, in T def) |
Range< int > | GetAttributeRange (string key, in Range< int > def) |
Identifier | VariantOf () |
bool | DoesAttributeReferenceFileNameAlone (string key) |
string | ParseContentPathFromUri () |
void | SetAttributeValue (string key, string val) |
void | Add (ContentXElement elem) |
void | AddFirst (ContentXElement elem) |
void | AddAfterSelf (ContentXElement elem) |
void | Remove () |
override bool | Equals (object? obj) |
override int | GetHashCode () |
Static Public Member Functions | |
static implicit | operator XElement? (ContentXElement? cxe) |
static bool | operator== (in ContentXElement? a, in ContentXElement? b) |
static bool | operator!= (in ContentXElement? a, in ContentXElement? b) |
Public Attributes | |
readonly XElement | Element |
T1 | |
Properties | |
ContentPackage? | ContentPackage [get] |
XName | Name [get] |
string | BaseUri [get] |
XDocument? | Document [get] |
ContentXElement? | Parent [get] |
bool | HasElements [get] |
Definition at line 12 of file ContentXElement.cs.
Barotrauma.ContentXElement.ContentXElement | ( | ContentPackage? | contentPackage, |
XElement | element | ||
) |
Definition at line 17 of file ContentXElement.cs.
void Barotrauma.ContentXElement.Add | ( | ContentXElement | elem | ) |
Definition at line 107 of file ContentXElement.cs.
void Barotrauma.ContentXElement.AddAfterSelf | ( | ContentXElement | elem | ) |
Definition at line 121 of file ContentXElement.cs.
void Barotrauma.ContentXElement.AddFirst | ( | ContentXElement | elem | ) |
Definition at line 114 of file ContentXElement.cs.
IEnumerable<XAttribute> Barotrauma.ContentXElement.Attributes | ( | ) |
IEnumerable<XAttribute> Barotrauma.ContentXElement.Attributes | ( | string | name | ) |
bool Barotrauma.ContentXElement.ComesAfter | ( | ContentXElement | other | ) |
IEnumerable<ContentXElement> Barotrauma.ContentXElement.Descendants | ( | ) |
bool Barotrauma.ContentXElement.DoesAttributeReferenceFileNameAlone | ( | string | key | ) |
string Barotrauma.ContentXElement.ElementInnerText | ( | ) |
IEnumerable<ContentXElement> Barotrauma.ContentXElement.Elements | ( | ) |
IEnumerable<ContentXElement> Barotrauma.ContentXElement.ElementsBeforeSelf | ( | ) |
override bool Barotrauma.ContentXElement.Equals | ( | object? | obj | ) |
Definition at line 130 of file ContentXElement.cs.
ContentXElement? Barotrauma.ContentXElement.FirstElement | ( | ) |
XAttribute? Barotrauma.ContentXElement.GetAttribute | ( | string | name | ) |
bool Barotrauma.ContentXElement.GetAttributeBool | ( | string | key, |
bool | def | ||
) |
Color? Barotrauma.ContentXElement.GetAttributeColor | ( | string | key | ) |
Color Barotrauma.ContentXElement.GetAttributeColor | ( | string | key, |
in Color | def | ||
) |
Color? [] Barotrauma.ContentXElement.GetAttributeColorArray | ( | string | key, |
Color?[] | def | ||
) |
ContentPath? Barotrauma.ContentXElement.GetAttributeContentPath | ( | string | key | ) |
T Barotrauma.ContentXElement.GetAttributeEnum< T > | ( | string | key, |
in T | def | ||
) |
T | : | struct | |
T | : | Enum | |
T | : | Element.GetAttributeEnum | |
T | : | key | |
T | : | def |
float Barotrauma.ContentXElement.GetAttributeFloat | ( | float | def, |
params string[] | keys | ||
) |
float Barotrauma.ContentXElement.GetAttributeFloat | ( | string | key, |
float | def | ||
) |
float? [] Barotrauma.ContentXElement.GetAttributeFloatArray | ( | string | key, |
float?[] | def | ||
) |
Identifier Barotrauma.ContentXElement.GetAttributeIdentifier | ( | string | key, |
Identifier | def | ||
) |
Identifier Barotrauma.ContentXElement.GetAttributeIdentifier | ( | string | key, |
string | def | ||
) |
Identifier [] Barotrauma.ContentXElement.GetAttributeIdentifierArray | ( | Identifier[] | def, |
params string[] | keys | ||
) |
Identifier [] Barotrauma.ContentXElement.GetAttributeIdentifierArray | ( | string | key, |
Identifier[] | def, | ||
bool | trim = true |
||
) |
ImmutableHashSet<Identifier> Barotrauma.ContentXElement.GetAttributeIdentifierImmutableHashSet | ( | string | key, |
ImmutableHashSet< Identifier >? | def, | ||
bool | trim = true |
||
) |
int Barotrauma.ContentXElement.GetAttributeInt | ( | string | key, |
int | def | ||
) |
int? [] Barotrauma.ContentXElement.GetAttributeIntArray | ( | string | key, |
int?[] | def | ||
) |
Point Barotrauma.ContentXElement.GetAttributePoint | ( | string | key, |
in Point | def | ||
) |
Rectangle Barotrauma.ContentXElement.GetAttributeRect | ( | string | key, |
in Rectangle | def | ||
) |
string? Barotrauma.ContentXElement.GetAttributeString | ( | string | key, |
string? | def | ||
) |
string? [] Barotrauma.ContentXElement.GetAttributeStringArray | ( | string | key, |
string?[] | def, | ||
bool | convertToLowerInvariant = false |
||
) |
string Barotrauma.ContentXElement.GetAttributeStringUnrestricted | ( | string | key, |
string | def | ||
) |
ushort Barotrauma.ContentXElement.GetAttributeUInt16 | ( | string | key, |
ushort | def | ||
) |
ushort? [] Barotrauma.ContentXElement.GetAttributeUshortArray | ( | string | key, |
ushort?[] | def | ||
) |
Vector2 Barotrauma.ContentXElement.GetAttributeVector2 | ( | string | key, |
in Vector2 | def | ||
) |
Vector4 Barotrauma.ContentXElement.GetAttributeVector4 | ( | string | key, |
in Vector4 | def | ||
) |
Version Barotrauma.ContentXElement.GetAttributeVersion | ( | string | key, |
Version | def | ||
) |
ContentXElement? Barotrauma.ContentXElement.GetChildElement | ( | string | name | ) |
IEnumerable<ContentXElement> Barotrauma.ContentXElement.GetChildElements | ( | string | name | ) |
override int Barotrauma.ContentXElement.GetHashCode | ( | ) |
Definition at line 135 of file ContentXElement.cs.
bool Barotrauma.ContentXElement.IsOverride | ( | ) |
Identifier Barotrauma.ContentXElement.NameAsIdentifier | ( | ) |
|
static |
|
static |
|
static |
Definition at line 140 of file ContentXElement.cs.
string Barotrauma.ContentXElement.ParseContentPathFromUri | ( | ) |
void Barotrauma.ContentXElement.Remove | ( | ) |
void Barotrauma.ContentXElement.SetAttributeValue | ( | string | key, |
string | val | ||
) |
Identifier Barotrauma.ContentXElement.VariantOf | ( | ) |
readonly XElement Barotrauma.ContentXElement.Element |
Definition at line 15 of file ContentXElement.cs.
Barotrauma.ContentXElement.T1 |
Definition at line 95 of file ContentXElement.cs.
|
get |
Definition at line 29 of file ContentXElement.cs.
|
get |
Definition at line 14 of file ContentXElement.cs.
|
get |
Definition at line 31 of file ContentXElement.cs.
|
get |
Definition at line 36 of file ContentXElement.cs.
|
get |
Definition at line 26 of file ContentXElement.cs.
|
get |
Definition at line 35 of file ContentXElement.cs.