Unstable 1.1.14.0
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Barotrauma
|
||||
=> Element.Descendants().Select(e => new ContentXElement(ContentPackage, e));
|
||||
|
||||
public IEnumerable<ContentXElement> GetChildElements(string name)
|
||||
=> Elements().Where(e => string.Equals(name, e.Name.LocalName, StringComparison.InvariantCultureIgnoreCase));
|
||||
=> Elements().Where(e => string.Equals(name, e.Name.LocalName, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
public XAttribute? GetAttribute(string name) => Element.GetAttribute(name);
|
||||
|
||||
@@ -76,6 +76,7 @@ namespace Barotrauma
|
||||
public string[]? GetAttributeStringArray(string key, string[]? def, bool convertToLowerInvariant = false) => Element.GetAttributeStringArray(key, def, convertToLowerInvariant);
|
||||
public ContentPath? GetAttributeContentPath(string key) => Element.GetAttributeContentPath(key, ContentPackage);
|
||||
public int GetAttributeInt(string key, int def) => Element.GetAttributeInt(key, def);
|
||||
public ushort GetAttributeUInt16(string key, ushort def) => Element.GetAttributeUInt16(key, def);
|
||||
public int[]? GetAttributeIntArray(string key, int[]? def) => Element.GetAttributeIntArray(key, def);
|
||||
public ushort[]? GetAttributeUshortArray(string key, ushort[]? def) => Element.GetAttributeUshortArray(key, def);
|
||||
public float GetAttributeFloat(string key, float def) => Element.GetAttributeFloat(key, def);
|
||||
|
||||
Reference in New Issue
Block a user