Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Commit

Permalink
Reordering attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Jul 31, 2015
1 parent 5e5eec6 commit 14b7fae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EdgeTool/Core/Level/Level.cs
Original file line number Diff line number Diff line change
@@ -448,12 +448,12 @@ public void Write(BinaryWriter writer)
}
public XElement GetXElement()
{
var element = new XElement("Level", new XAttribute("ID", ID), new XAttribute("Size", Size),
new XAttribute("SpawnPoint", SpawnPoint),
new XAttribute("ExitPoint", ExitPoint));
var element = new XElement("Level", new XAttribute("ID", ID), new XAttribute("Size", Size));
element.SetAttributeValueWithDefault("Name", Name, string.Empty);
element.SetAttributeValueWithDefault("TimeThresholds", $"{SPlusTime},{STime},{ATime},{BTime},{CTime}",
"1,2,3,4,5");
element.SetAttributeValue("SpawnPoint", SpawnPoint);
element.SetAttributeValue("ExitPoint", ExitPoint);
element.SetAttributeValueWithDefault("Theme", Theme);
element.SetAttributeValueWithDefault("MusicJava", MusicJava);
element.SetAttributeValueWithDefault("Music", Music, 6);

0 comments on commit 14b7fae

Please sign in to comment.