public List <XElement> GetModifiers(PartData part) { XElement data = part.GenerateXml(part.PartScript.CraftScript.Transform, false); data.SetAttributeValue("activated", part.Activated); return(data.DescendantsAndSelf().ToList()); }
private PartData ClonePartData(PartData data) { return(new PartData(data.GenerateXml(designer.CraftScript.Transform, optimizeXml: false), _mod.craftXMLVersion, data.PartType)); }
private PartData ClonePartData(PartData data) { PartData partData = new PartData(data.GenerateXml(_Designer.CraftScript.Transform, optimizeXml: false), _Designer.CraftScript.Data.XmlVersion, data.PartType); return(partData); }