MrGravity.LevelChoice.Export C# (CSharp) Method

Export() public method

Export an XElement of this level choice TODO: change additional XElements for new worldSelect
public Export ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement
        public XElement Export()
        {
            SubmitScore(Level.TimerStar, Level.CollectionStar, Level.DeathStar);
            var xUnlock = XmlKeys.False;
            if (Unlocked)
                xUnlock = XmlKeys.True;

            var xLevel = new XElement(XmlKeys.LevelData,
                new XElement(XmlKeys.LevelName, Level.Name),
                new XElement(XmlKeys.Unlocked, xUnlock),
                new XElement(XmlKeys.Timerstar, TimerStar.ToString()),
                new XElement(XmlKeys.Collectionstar, CollectionStar.ToString()),
                new XElement(XmlKeys.Deathstar, DeathStar.ToString()));

            return xLevel;
        }