OSDN Git Service

Added Entity UID to TSV file
authormelchior <melchior@users.osdn.me>
Tue, 26 Jan 2021 23:36:23 +0000 (18:36 -0500)
committermelchior <melchior@users.osdn.me>
Tue, 26 Jan 2021 23:36:23 +0000 (18:36 -0500)
Automap/Subsystems/AutomapSystem.cs

index 1ceaadc..eb59630 100644 (file)
@@ -417,7 +417,7 @@ namespace Automap
 
                        using (var tsvWriter = new StreamWriter(pointsTsvPath, false, Encoding.UTF8))
                        {
-                               tsvWriter.WriteLine("Name\tDescription\tLocation\tTime\tDestination");
+                               tsvWriter.WriteLine("Name\tDescription\tLocation\tTime\tDestination\tEntity_UID");
                                foreach (var point in this.POIs)
                                {
                                        tsvWriter.Write(point.Name + "\t");
@@ -429,6 +429,7 @@ namespace Automap
                                        tsvWriter.Write(point.Location.PrettyCoords(ClientAPI) + "\t");
                                        tsvWriter.Write(point.Timestamp.ToString("u") + "\t");
                                        tsvWriter.Write((point.Destination != null ? point.Destination.PrettyCoords(ClientAPI) : "---") +"\t");
+                                       tsvWriter.Write("null\t");
                                        tsvWriter.WriteLine();
                                }
                                foreach (var entity in this.EOIs)
@@ -441,7 +442,8 @@ namespace Automap
                                        tsvWriter.Write(notes + "\t");
                                        tsvWriter.Write(entity.Location.PrettyCoords(ClientAPI) + "\t");
                                        tsvWriter.Write(entity.Timestamp.ToString("u") + "\t");
-                                       tsvWriter.Write("n/a\t");
+                                       tsvWriter.Write("---\t");
+                                       tsvWriter.Write(entity.EntityId.ToString("D"));
                                        tsvWriter.WriteLine();
                                }
                                tsvWriter.WriteLine();