From: melchior Date: Tue, 26 Jan 2021 23:36:23 +0000 (-0500) Subject: Added Entity UID to TSV file X-Git-Tag: V0.1.6~11 X-Git-Url: http://git.osdn.net/view?p=automap%2Fautomap.git;a=commitdiff_plain;h=1bc6b3f492ef8575eb458b32b88d7d0f47bf2bed;hp=69c231723eb243f5e8667d3496d1cadb573a6151 Added Entity UID to TSV file --- 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();