public static bool Contains(this List <vItemAttribute> attributes, vItemEnumsBuilder.vItemAttributes name) { var attribute = attributes.Find(at => at.name == name); return(attribute != null); }
public static vItemAttribute GetAttributeByType(this List <vItemAttribute> attributes, vItemEnumsBuilder.vItemAttributes name) { var attribute = attributes.Find(at => at.name == name); return(attribute); }
public vItemAttribute(vItemEnumsBuilder.vItemAttributes name, int value) { this.name = name; this.value = value; }