2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
7 using Vintagestory.API.Common.Entities;
8 using Vintagestory.API.MathTools;
13 /// Actual Physical Point in space - that is interesting.
15 public struct EntityOfInterest
18 public BlockPos Location;
19 public DateTimeOffset Timestamp;
24 /// Entities of interest.
26 /// <remarks>Tracked by ID - these never leave.</remarks>
27 public class EntitiesOfInterest : KeyedCollection<long, EntityOfInterest>
30 internal void AddReplace(EntityOfInterest entity)
32 if (Contains(entity.EntityId))
33 Remove(entity.EntityId);
38 protected override long GetKeyForItem(EntityOfInterest item)