From 1bc6b3f492ef8575eb458b32b88d7d0f47bf2bed Mon Sep 17 00:00:00 2001 From: melchior Date: Tue, 26 Jan 2021 18:36:23 -0500 Subject: [PATCH] Added Entity UID to TSV file --- Automap/Subsystems/AutomapSystem.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Automap/Subsystems/AutomapSystem.cs b/Automap/Subsystems/AutomapSystem.cs index 1ceaadc..eb59630 100644 --- a/Automap/Subsystems/AutomapSystem.cs +++ b/Automap/Subsystems/AutomapSystem.cs @@ -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(); -- 2.11.0