public void CreateElement(bool preview, XElement parent) { parent.Add(new XElement("OBJECT", new XAttribute("type", 0), new XAttribute("position", _Position), new XAttribute("scale", _Scale), new XAttribute("rotation", _Rotation), new XAttribute("ignoreWhileLighting", _IgnoreLighting), _Material.CreateElement(preview))); }
public void CreateElement(XElement parent) { XElement ret; ret = new XElement("GRADIENTSEGMENT", _StartColour.CreateElement("STARTCOLOUR", false), _EndColour.CreateElement("ENDCOLOUR", false), new XAttribute("startX", _StartX), new XAttribute("endX", _EndX)); parent.Add(ret); }