示例#1
0
 void IXMLSerializable.ReadXML(XElement xMainElement)
 {
     foreach (var xElement in xMainElement.Elements())
     {
         IGOAPAction action = new GOAPAction("Temporary Name");
         action.ReadXML(xElement);
         Add(action);
     }
 }
示例#2
0
        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);
        }