Automap (client) [VS plugin mod]
Revision | 08c37e7d8a466bbbd00ff085e913c744a206855e (tree) |
---|---|
Time | 2020-07-06 08:36:50 |
Author | melchior <melchior@user...> |
Commiter | melchior |
Fixes for Translocator, and Coordinate format change for POI TSV file
@@ -170,11 +170,11 @@ namespace Automap | ||
170 | 170 | |
171 | 171 | StringBuilder textTarget = new StringBuilder(); |
172 | 172 | //translocatorEntity.GetBlockInfo(clientAPI.World.Player, textTarget); |
173 | - | |
174 | - textTarget.Append(te.Activated ? "Online " : "offline "); | |
175 | - textTarget.Append(" Dest.: "); | |
176 | - textTarget.Append(te.TargetLocation != null ? te.TargetLocation.PrettyCoords(clientAPI) : "???");//Or ABS coords? | |
177 | - | |
173 | + textTarget.Append(te.FullyRepaired ? "Functional " : "Broken "); | |
174 | + textTarget.Append(te.Activated ? "Online " : "Offline "); | |
175 | + textTarget.Append(" Target: "); | |
176 | + textTarget.Append(te.TargetLocation != null ? "Set" : "Invalid");//Or ABS coords? | |
177 | + textTarget.AppendFormat(" Range ({0} ~ {1})", te.MinTeleporterRangeInBlocks, te.MaxTeleporterRangeInBlocks); | |
178 | 178 | poi.AddReplace( |
179 | 179 | new PointOfInterest |
180 | 180 | { |
@@ -395,7 +395,7 @@ namespace Automap | ||
395 | 395 | |
396 | 396 | using (var tsvWriter = new StreamWriter(pointsTsvPath, false, Encoding.UTF8)) |
397 | 397 | { |
398 | - tsvWriter.WriteLine("Name\tDescription\tLocation\tTime\t"); | |
398 | + tsvWriter.WriteLine("Name\tDescription\tLocation\tTime\tDestination"); | |
399 | 399 | foreach (var point in this.POIs) |
400 | 400 | { |
401 | 401 | tsvWriter.Write(point.Name + "\t"); |
@@ -406,6 +406,7 @@ namespace Automap | ||
406 | 406 | tsvWriter.Write(notes + "\t"); |
407 | 407 | tsvWriter.Write(point.Location.PrettyCoords(ClientAPI) + "\t"); |
408 | 408 | tsvWriter.Write(point.Timestamp.ToString("u") + "\t"); |
409 | + tsvWriter.Write((point.Destination != null ? point.Destination.PrettyCoords(ClientAPI) : "---") +"\t"); | |
409 | 410 | tsvWriter.WriteLine(); |
410 | 411 | } |
411 | 412 | foreach (var entity in this.EOIs) |
@@ -418,6 +419,7 @@ namespace Automap | ||
418 | 419 | tsvWriter.Write(notes + "\t"); |
419 | 420 | tsvWriter.Write(entity.Location.PrettyCoords(ClientAPI) + "\t"); |
420 | 421 | tsvWriter.Write(entity.Timestamp.ToString("u") + "\t"); |
422 | + tsvWriter.Write("n/a\t"); | |
421 | 423 | tsvWriter.WriteLine(); |
422 | 424 | } |
423 | 425 | tsvWriter.WriteLine(); |