Example #1
0
 public static void writeItemId(System.Xml.XmlWriter writer, string name, SaveLoadManager.UniqueId id)
 {
     if (id != null)
     {
         writer.WriteElementString(name, id.ToString());
     }
     else
     {
         writer.WriteElementString(name, SaveLoadManager.UniqueId.Empty.ToString());
     }
 }
Example #2
0
 public static void writeItemId(ref string line, SaveLoadManager.UniqueId id)
 {
     // we add a # in front of the hash code, just for compatibility with group id (who need them)
     if (id != null)
     {
         line += "#" + id.ToString() + " ";
     }
     else
     {
         line += "#" + SaveLoadManager.UniqueId.Empty + " ";
     }
 }