OSDN Git Service

Fixes for Translocator, and Coordinate format change for POI TSV file
authormelchior <melchior@users.osdn.me>
Sun, 5 Jul 2020 23:36:50 +0000 (19:36 -0400)
committermelchior <melchior@users.osdn.me>
Sun, 5 Jul 2020 23:36:50 +0000 (19:36 -0400)
Automap/Designators/DefaultDesignators.cs
Automap/Subsystems/AutomapSystem.cs

index b4f6d30..d4ac56a 100644 (file)
@@ -170,11 +170,11 @@ namespace Automap
 
                                StringBuilder textTarget = new StringBuilder();
                                //translocatorEntity.GetBlockInfo(clientAPI.World.Player, textTarget);
-
-                               textTarget.Append(te.Activated ? "Online " : "offline ");
-                               textTarget.Append(" Dest.: ");
-                               textTarget.Append(te.TargetLocation != null ? te.TargetLocation.PrettyCoords(clientAPI) : "???");//Or ABS coords?               
-
+                               textTarget.Append(te.FullyRepaired ? "Functional " : "Broken ");
+                               textTarget.Append(te.Activated ? "Online " : "Offline ");
+                               textTarget.Append(" Target: ");
+                               textTarget.Append(te.TargetLocation != null ? "Set" : "Invalid");//Or ABS coords?               
+                               textTarget.AppendFormat(" Range ({0} ~ {1})", te.MinTeleporterRangeInBlocks, te.MaxTeleporterRangeInBlocks);
                                poi.AddReplace(
                                                        new PointOfInterest
                                                        {
index 8bbb0c1..6636ea9 100644 (file)
@@ -395,7 +395,7 @@ namespace Automap
 
                        using (var tsvWriter = new StreamWriter(pointsTsvPath, false, Encoding.UTF8))
                        {
-                               tsvWriter.WriteLine("Name\tDescription\tLocation\tTime\t");
+                               tsvWriter.WriteLine("Name\tDescription\tLocation\tTime\tDestination");
                                foreach (var point in this.POIs)
                                {
                                        tsvWriter.Write(point.Name + "\t");
@@ -406,6 +406,7 @@ namespace Automap
                                        tsvWriter.Write(notes + "\t");
                                        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.WriteLine();
                                }
                                foreach (var entity in this.EOIs)
@@ -418,6 +419,7 @@ 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.WriteLine();
                                }
                                tsvWriter.WriteLine();