2 using System.Collections.ObjectModel;
4 using Vintagestory.API.Common;
5 using Vintagestory.API.MathTools;
10 /// Actual Physical Point in space - that is interesting.
12 public struct PointOfInterest
15 public BlockPos Location;
16 public DateTimeOffset Timestamp;
17 public long? EntityId;
20 public class PointsOfInterest : KeyedCollection<BlockPos, PointOfInterest>
22 protected override BlockPos GetKeyForItem(PointOfInterest item)
27 internal void AddReplace(PointOfInterest poi)
29 if (this.Contains(poi.Location))
31 this.Remove(poi.Location);