private NotCondition ConvertXmlNotCondition(XmlNotCondition xmlNotCond, PseudoAttribute pseudo, Attribute attr) { ICondition innerCond; if (xmlNotCond.Keystone != null) { innerCond = new KeystoneCondition(xmlNotCond.Keystone); } else if (xmlNotCond.OffHand != null) { innerCond = new OffHandCondition(xmlNotCond.OffHand); } else if (xmlNotCond.Tag != null) { innerCond = new TagCondition(xmlNotCond.Tag); } else if (xmlNotCond.WeaponClass != null) { innerCond = new WeaponClassCondition(xmlNotCond.WeaponClass); } else { throw new PseudoAttributeDataInvalidException( string.Format(L10n.Message("Empty not condition in attribute {0} in pseudo attribute {1}"), attr.Name, pseudo.Name)); } return(new NotCondition(innerCond)); }
private NotCondition ConvertXmlNotCondition(XmlNotCondition xmlNotCond, PseudoAttribute pseudo, Attribute attr) { ICondition innerCond; if (xmlNotCond.Keystone != null) { innerCond = new KeystoneCondition(xmlNotCond.Keystone); } else if (xmlNotCond.OffHand != null) { innerCond = new OffHandCondition(xmlNotCond.OffHand); } else if (xmlNotCond.Tag != null) { innerCond = new TagCondition(xmlNotCond.Tag); } else if (xmlNotCond.WeaponClass != null) { innerCond = new WeaponClassCondition(xmlNotCond.WeaponClass); } else { throw new PseudoAttributeDataInvalidException( string.Format(L10n.Message("Empty not condition in attribute {0} in pseudo attribute {1}"), attr.Name, pseudo.Name)); } return new NotCondition(innerCond); }