Example #1
0
 public void WriteXml(StringBuilder sb, int indent)
 {
     YwrXml.SelfClosingTag(sb, indent, "Position " + FloatUtil.GetVector3XmlString(Position));
     YwrXml.ValueTag(sb, indent, "Unk0", Unk0.ToString());
     YwrXml.ValueTag(sb, indent, "Unk1", Unk1.ToString());
     YwrXml.ValueTag(sb, indent, "Unk2", Unk2.ToString());
     YwrXml.ValueTag(sb, indent, "Unk3", Unk3.ToString());
 }
Example #2
0
 public static void WriteXmlNode(WaypointRecordList l, StringBuilder sb, int indent, string name = "WaypointRecordList")
 {
     if (l == null)
     {
         return;
     }
     if ((l.Entries?.Data == null) || (l.Entries.Data.Count == 0))
     {
         YwrXml.SelfClosingTag(sb, indent, name);
     }
     else
     {
         YwrXml.OpenTag(sb, indent, name);
         l.WriteXml(sb, indent + 1);
         YwrXml.CloseTag(sb, indent, name);
     }
 }