public static PlayerAction FromXml(XmlElement e, IdIssuer <Card> cl, IdIssuer <Lane> lanes) { object[] args = new object[] { e, cl, lanes }; PlayerAction pa = SendableFactory <PlayerAction> .FromXml(e, args); return(pa); }
public static InputRequest FromXml(XmlElement e) { // find in there is already an Input Request with the same ID string id = e.Attributes["id"].Value; InputRequest sharedId = idIssuer.GetByID(id); // ...if there is, just migrate data to that one if (sharedId != null && sharedId.MakeChoiceFrom(e)) { return(sharedId); } // if that rought failed to return... object[] args = new object[] { e }; return(SendableFactory <InputRequest> .FromXml(e, args)); }