13 foreach (XElement item
in from e
in projectNode.Element(
"Subsystems").Elements()
17 xElement.SetAttributeValue(
"Name",
"AreSeasonsChanging");
18 xElement.SetAttributeValue(
"Type",
"bool");
19 xElement.SetAttributeValue(
"Value",
"false");
21 xElement2.SetAttributeValue(
"Name",
"TimeOfYear");
22 xElement2.SetAttributeValue(
"Type",
"float");
static Stream OpenFile(string path, OpenFileMode openFileMode)
static string CombinePaths(params string[] paths)
static float Midpoint(float t1, float t2, float factor=0.5f)
override string TargetVersion
override void ConvertWorld(string directoryName)
override void ConvertProjectXml(XElement projectNode)
override string SourceVersion
static void SetAttributeValue(XElement node, string attributeName, object value)
static object GetAttributeValue(XElement node, string attributeName, Type type)
static XElement LoadXmlFromStream(Stream stream, Encoding encoding, bool throwOnError)
static XElement AddElement(XElement parentNode, string name)
static void SaveXmlToStream(XElement node, Stream stream, Encoding encoding, bool throwOnError)