CryEngine.CharacterCustomization.CharacterAttachmentSlot.GetWriteableElement C# (CSharp) Method

GetWriteableElement() public method

public GetWriteableElement ( string name = null ) : XElement
name string
return XElement
        public XElement GetWriteableElement(string name = null)
        {
            if (name == null)
                name = Name;

            return Manager.GetAttachmentElements(Manager.CharacterDefinition).FirstOrDefault(x =>
                {
                    var aNameAttribute = x.Attribute("AName");
                    if (aNameAttribute == null)
                        return false;

                    return aNameAttribute.Value == name;
                });
        }