public override XmlElement Save(XmlDocument xmlDoc) { XmlElement xmlNode = base.Save(xmlDoc); xmlNode.SetAttribute("Global", global.ToString()); xmlNode.SetAttribute("CastShadows", castShadows.ToString()); xmlNode.SetAttribute("AmbientLightColor", ambientLightColor.ToString()); xmlNode.AppendChild(lightSource.Save(xmlDoc)); return(xmlNode); }