void IXMLSerializable.ReadXML(XElement xMainElement) { foreach (var xElement in xMainElement.Elements()) { IGOAPAction action = new GOAPAction("Temporary Name"); action.ReadXML(xElement); Add(action); } }
List <GOAPAction> ActionSubset(List <GOAPAction> actions, GOAPAction removeThis) { List <GOAPAction> subset = new List <GOAPAction>(); foreach (GOAPAction action in actions) { if (!action.Equals(removeThis)) { subset.Add(action); } } return(subset); }