2 using System.Collections.ObjectModel;
5 using Vintagestory.API.Client;
6 using Vintagestory.API.Common;
7 using Vintagestory.API.MathTools;
11 using Newtonsoft.Json;
16 /// Actual Physical Point in space - that is interesting.
19 public struct PointOfInterest
21 [DisplayName(0, "Name")]
25 [DisplayName(2, "Notes")]
29 [DisplayName(1, "Loc.")]
30 public string PrettyLocation;
33 public BlockPos Location;
35 [DisplayName(3, "Time")]
37 public DateTime Timestamp;
42 public class PointsOfInterest : KeyedCollection<BlockPos, PointOfInterest>
44 protected override BlockPos GetKeyForItem(PointOfInterest item)
47 internal void AddReplace(PointOfInterest poi)
49 if (Contains(poi.Location))